Voicemail is not sent to email
Please check if e-mail address is correct in "Email:" field in user Device settings.
Also make sure that mails are not in a Spam folder.
Make sure Postfix service is not stopped and starts with reboot:
[root@mail3 log]# chkconfig postfix --list postfix 0:off 1:off 2:on 3:off 4:on 5:on 6:off (in this example configuration is broken)
Check /var/log/maillog for more clues.
Example
Dec 12 20:42:51 localhost postfix/smtp[28599]: connect to alt3.gmail-smtp-in.l.google.com[209.85.225.26]: Connection timed out (port 25)
Message shows that mail server cannot be connected.
Voicemail is not sent to Google mail (Gmail) due to IPv6
If you see such errors:
550-5.7.1 [2a01:4f8:160:726d::2] Our system has detected that this message does 550-5.7.1 not meet IPv6 sending guidelines regarding PTR records and 550-5.7.1 authentication. Please review 550-5.7.1 https://support.google.com/mail/?p=IPv6AuthError for more information 550 5.7.1 . e138si7186453wmf.124 - gsmtp
You can make tcpdump on port 25 to make sure that IPv6 is used:
tcpdump port 25
If IPv6 is used, then output should be similar to this:
12:54:36.268451 IP6 CentOS-65-64-minimal.44712 > 2a00:1450:4013:c02::1b.smtp: Flags [.], ack 1, win 113, options [nop,nop,TS val 2049592501 ecr 2609461210], length 0
To fix this, please edit file:
/etc/postfix/main.cf
Change:
inet_protocols = all
To:
inet_protocols = ipv4
And restart Postfix:
/sbin/service postfix restart
Voicemail is not sent to Google mail (Gmail) due to SPF or DKIM
Error:
Oct 11 10:33:47 sip-jhb1 postfix/smtp[1607079]: 83165FCC4D9: to=<some.email.to@gmail.com>, relay=gmail-smtp-in.l.google.com[173.194.76.26]:25, delay=1.8, delays=0.05/0/1.2/0.62, dsn=5.7.26, status=bounced (host gmail-smtp-in.l.google.com[173.194.76.26] said: 550-5.7.26 Your email has been blocked because the sender is unauthenticated. 550-5.7.26 Gmail requires all senders to authenticate with either SPF or DKIM. 550-5.7.26 550-5.7.26 Authentication results: 550-5.7.26 DKIM = did not pass 550-5.7.26 SPF [some_hostname.localdomain] with ip: [XXX.XXX.XXX.XXX] = did not pass 550-5.7.26 550-5.7.26 For instructions on setting up authentication, go to 550 5.7.26 https://support.google.com/mail/answer/81126#authentication 5b1f17b1804b1-430ccf1f0d6si29034085e9.1 - gsmtp (in reply to end of DATA command))
Solution:
Make sure the hostname you are sending emails from has the SPF Record.
The SPF Record Check: https://mxtoolbox.com/spf.aspx
Set the hostname to the From header according to this manual.
If the above solution does not work, try the one below.
In the file:
/etc/postfix/main.cf
Add:
sender_canonical_maps = regexp:/etc/postfix/sender_canonical
Then create a file:
/etc/postfix/sender_canonical
Add there:
/^root@some_hostname\.localdomain$/ no-reply@some_hostname.com /^root@some_hostname$/ no-reply@some_hostname.com
Execute commands:
postmap /etc/postfix/sender_canonical systemctl restart postfix
To revert this configuration remove:
sender_canonical_maps = regexp:/etc/postfix/sender_canonical
From the file:
/etc/postfix/main.cf
Execute command:
systemctl restart postfix