April 6, 2023, 7:55am
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
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.
April 6, 2023, 4:07pm
Did you look in your spam folder
April 6, 2023, 4:18pm
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?
April 6, 2023, 4:46pm
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.
April 6, 2023, 5:04pm
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
) from the cli works and I receive the email. Only the missed call notification module fails to send it there. [email protected]
I will Google spf record setup and check my domain as per your instructions.
April 6, 2023, 5:33pm
U need to check
April 7, 2023, 7:25am
[email protected] ~]# tail /var/log/maillog
Apr 7 10:09:59 freepbx postfix/pickup: 5D573182480FF: uid=995 from= [email protected]
Apr 7 10:09:59 freepbx postfix/cleanup: 5D573182480FF: message-id=<642fc > [email protected]
Apr 7 10:09:59 freepbx postfix/qmgr: 5D573182480FF: from= , size=1213, nrcpt=1 (queue active) [email protected]
Apr 7 10:10:00 freepbx postfix/smtp: 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: 5D573182480FF: removed
Apr 7 10:10:22 freepbx postfix/pickup: BBE7C182480FF: uid=995 from= [email protected]
Apr 7 10:10:22 freepbx postfix/cleanup: BBE7C182480FF: message-id=<642fc > [email protected]
Apr 7 10:10:22 freepbx postfix/qmgr: BBE7C182480FF: from= , size=1207, nrcpt=1 (queue active) [email protected]
Apr 7 10:10:23 freepbx postfix/smtp: BBE7C182480FF: to= , 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) [email protected]
Apr 7 10:10:23 freepbx postfix/qmgr: BBE7C182480FF: removed
[ [email protected] ~]#
via missed call notification module [email protected] gets delivered ok
via missed call notification module doesn’t get delivered [email protected]
mail via cli gets delivered [email protected]
April 7, 2023, 7:35am
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.
April 7, 2023, 7:48am
Stewart a very good morning to you,
It gets delivered with identical from and body.
sudo -u asterisk mail -s testemail
delivers it also
April 12, 2023, 4:44pm
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.
April 12, 2023, 5:25pm
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
April 19, 2023, 5:26pm
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.