Wednesday, March 24, 2010
Microsoft Exchange as relay for Elastix 1.6 eMail
You will need to have a valid domain user with an Exchange mailbox to send mail as.
SSH to your Elastix box and run the following commands:
SSH to your Elastix box and run the following commands:
postconf -e 'relayhost = exchange-ip-address'
postconf -e 'smtp_sasl_auth_enable = no'
postconf -e 'smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd'
postconf -e 'smtp_sasl_security_options ='
postconf -e 'mydomain = your-domain-name.com'
postconf -e 'myhostname = elastix-hostname.your-domain-name.com'
echo "exchange-ip-address domain-username:domain-password" > /etc/postfix/sasl_passwd
chown root:root /etc/postfix/sasl_passwd
chmod 600 /etc/postfix/sasl_passwd
postmap /etc/postfix/sasl_passwd
/etc/init.d/postfix restart
To test mail function:mail -s test valid-email@whatever.com < /etc/hosts
You should then get an email from your Elastix box with subject "test".