Missed Call Notifications Module Not Sending to Gmail Addresses

Good afternoon,

I have manually setup my postfix on my FreePBX Distro 16 in order to enable the Missed Called Notifications to email.

I have set up my smtp server (not a gmail one) and it is working fine sending the missed calls to the user email pointing to @xxxxxxx.gr emails.

However when i try to change it to a gmail pointing address it is is not sending it.

The log show status sent to that email and ok result but i am not receiving anything.

From the cli when i try to mail to that specific address the email forwards successfully and i receive it.

Any help would be much appreciated.

Thank you.

Did you look in your spam folder

Yea I did, nothing there, this is very strange behavior

Google sometimes outright doesn’t deliver emails even into the junk email box if it thinks the email is harmful for whatever reason.

Does your external IP have a reverse DNS entry setup and do you have valid SPF records setup for the domain that the emails will appear to come from?

This is a little bit out of my league so I have to study your questions and see what I can come up with.

So reverse DNS entries are set by the ISP on the static IP’s that are assigned to you and used by the phone system to get online. I guess I am assuming here that you are using a physical unit that’s trying to send out email over your internet connection. Not sure what the situation is with reverse DNS entries for IP’s provided by a cloud provider if this is a virtual environment but if it is you would need to check with your cloud provider how to get that setup.

SPF records are easy to Google and setup based on some of the guides that are provided out there.

Correct, I have a physical unit that is using the internet to send a mail. I am not getting a static ip by my provider but a dynamic one.

I am also not using the providers DNS but Cloudflare DNS if that has anything to do with it.

Pointing out again that (mail [email protected]) from the cli works and I receive the email. Only the missed call notification module fails to send it there.

I will Google spf record setup and check my domain as per your instructions.

U need to check
as well

[[email protected] ~]# tail /var/log/maillog
Apr 7 10:09:59 freepbx postfix/pickup[12528]: 5D573182480FF: uid=995 from=[email protected]
Apr 7 10:09:59 freepbx postfix/cleanup[23187]: 5D573182480FF: message-id=<642fc [email protected]>
Apr 7 10:09:59 freepbx postfix/qmgr[29036]: 5D573182480FF: from=[email protected], size=1213, nrcpt=1 (queue active)
Apr 7 10:10:00 freepbx postfix/smtp[23189]: 5D573182480FF: to=<[email protected]
, [email protected][x.x.x.x]:587, delay=1.1, delays=0.02/0.0 1/0.66/0.4, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 150DB1DA2528)
Apr 7 10:10:00 freepbx postfix/qmgr[29036]: 5D573182480FF: removed
Apr 7 10:10:22 freepbx postfix/pickup[12528]: BBE7C182480FF: uid=995 from=[email protected]
Apr 7 10:10:22 freepbx postfix/cleanup[23187]: BBE7C182480FF: message-id=<642fc [email protected]>
Apr 7 10:10:22 freepbx postfix/qmgr[29036]: BBE7C182480FF: from=[email protected], size=1207, nrcpt=1 (queue active)
Apr 7 10:10:23 freepbx postfix/smtp[23189]: BBE7C182480FF: to=[email protected], relay=xxxx.yyy.gr[x.x.x.x]:587, delay=1.1, delays=0.01/0/0.59 /0.55, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 5E2931DA26B0)
Apr 7 10:10:23 freepbx postfix/qmgr[29036]: BBE7C182480FF: removed
[[email protected] ~]#

[email protected] gets delivered ok via missed call notification module
[email protected] doesn’t get delivered via missed call notification module

mail [email protected] via cli gets delivered

Please confirm that it gets delivered even when the From: Subject: and body are identical to those of the failed message from Missed Call Notifications.

Stewart a very good morning to you,

It gets delivered with identical from and body.

sudo -u asterisk mail -s testemail [email protected]
delivers it also

Remove the attachment. In FreePBX, tell it to not include the VM as an attachment. Or, configure your PostFix to relay using a clean smarthost.

If you want GMail to accept your email with an attachment, you need to configure the mail system properly, which includes those records that you said you don’t know about. If you don’t know how to configure SPF and rDNS at a minimum, then you need to just use a legitimate SMTP relay from someone who knows what they’re doing.

I changed the postfix to a new gmail account, smtp with 2fa password.

Said that this one sends to both gmail and the original one.

So obviously something wrong with the tophost config of that email.

Thank you for all your suggestions and help

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.