Setting Up Voicemail to E-Mail
From Taridium
In order to be able to send e-mail messages from your ipbx system you will need to make sure that your receiving e-mail sender accepts your messages. By default ipbx uses a locally running sendmail daemon which forwards your e-mails to the correct mail server based on the DNS entries for your e-mail domain (aka MX records).
Contents |
Manual Configuration
Local Sendmail Daemon
If you haven't set your systems hostname yet, connect to your system via console or SSH and perform the following commands as root:
[root@ec2-ipbx ~]# nano /etc/sysconfig/network
Make sure you enter a valid hostname, in this case we are using ec2-ipbx.taridium.com as hostname:
HOSTNAME=ec2-ipbx.taridium.com NETWORKING=yes
Then activate this change immediately:
[root@ec2-ipbx ~]# hostname ec2-ipbx.taridium.com [root@ec2-ipbx ~]# service sendmail restart
This is important so the local sendmail daemon knows that the e-mails need to be sent to another server and aren't intended for local delivery.
Overriding DNS Routing
If you need to override any DNS based e-mail routing, you can edit the /etc/mail/mailertable file and configure domain based routing:
mycorpdomain.com smtp:[10.10.4.10]
The above would for example use a local/internal e-mail server for e-mails destined to @mycorpdomain.com. This can be useful if you want to prevent e-mails from being routed via an external IP address, or in cases where the e-mail server is not accessible via it's external IP address.
ipbx Voicemail Sender
Also make sure to use a valid sender address. To configure your voicemail system go to to System → Voicemail → General Settings in the administrator's interface and set your Server E-Mail Address to a valid e-mail address.
Whitelisting
Depending on where you host your e-mail domain, you might be able to whitelist your ipbx system via IP address. This will ensure that no messages get caught in your SPAM filters. Review the documentation for your e-mail server or e-mail service for further details.
Debugging
To debug voicemail to e-mail connect to the console or via SSH and review the sendmail log file while attempting to leave a voicemail message:
[root@ec2-ipbx ~]# tail -f /var/log/maillog
You should see a successful delivery:
Jul 12 11:46:49 us-houpbx2 sendmail[13801]: q65GknDE013799: to=<Angie.Armstrong@example.com>, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=809758, relay=smtp.example.com. [206.126.56.132], dsn=2.0.0, stat=Sent (Ok: queued as 21A594168D2)