I used to use Gmail for notifications but it’s been changing things lately and I just don’t want to have to deal with it so I am using my own email server off my domain.
It’s working except for two things:
No matter what I try emails are coming from “asterisk@email_address”@emailserver.com
2nd Issu: it appears that gmail seems to be rejecting the emails coming from the pbx. I’ve been able to send to a lot of other email addresses including ProtonMail but it appears Gmail and services like Yahoo are rejecting them. The pbx says they are sent but they never show up.
I’ve gone through the testing and settings on the host server for Mail Deliverabilty to make sure my MX records are straight and all that ( DKIM, SPF, PTR are checked and verified)
then to rewrite the domain for all addresses from the local pbx, use this format in ‘/etc/postfix/generic’:
@freepbx.localdomain@real-domain.com
then add the following to the end of /etc/postfix/main.cf
smtp_generic_maps = hash:/etc/postfix/generic
and
inet_protocols = ipv4
When I did all of this it solved most of the deliver issues but as I said you need to use something like MxToolBox to check your mailserver and make sure you’ve got USE TLS on in the System Admin module settings.
For my part, I was not able to reproduce this issue.
I just forwarded the ticket to the QA team to test this case.
I checked on two different systems. Everything was good.
Weird.