7. Configuring SMTP Mail with Incredible PBX for Elastix 4.0
Outbound email support using Postfix is preconfigured with Elastix 4.0. You can test whether it’s actually working by issuing the following command using your destination email address after logging in as root:
echo "test"| mail -s testmessage
[email protected]
If you don’t receive the email message within a minute or two and you’ve checked your spam folder, chances are your ISP is blocking downstream SMTP servers in an effort to combat spam. Comcast is one of the usual suspects. To enable outbound email service for delivery of voicemail and other email messages with a provider blocking downstream SMTP servers, you first need to obtain the SMTP domain of your ISP, e.g. smtp.comcrap.net. Next, edit
/etc/postfix/main.cf and add your SmartHost entry [in brackets] to the line that begins like this:
relayhost =. The line should look like this:
relayhost = [smtp.comcrap.net]. Save your addition and restart Postfix:
service postfix restart. Be sure to try another email test message after completing the SmartHost update. To use Gmail as your mail relay,
see this tutorial.