I’ve been trying to get email to work on my freepbx to no avail. I’ve followed the instruction on this link and disabled ipv6 without any positive results.
I’ve also pinged my server and it replies correctly.
Looking at the logs, I get this error message:
Aug 28 16:34:19 pbx postfix/smtp[9088]: connect to smtp.office365.com[2603:1036:b00:15::2]:587: Network is unreachable
Aug 28 16:34:19 pbx postfix/smtp[9088]: connect to smtp.office365.com[2603:1036:c00:14::2]:587: Network is unreachable
I did a little more research. According tothis post, the FROM: field email address must match the login being used to get into Office365 SMTP server. Can someone confirm my findings? And if confirmed, how do we go about changing the FROM field from asterisk@hostname to username_being_used_to_login@hostname since the word ‘asterisk’ seems to be fixed permanently.
Your reply is very helpful, Greg. Thanks to your reply, I did the following.
in the Origin field, I changed removed the subdomain from pbx.mybooks.solutions to mybooks.solutions. This change instantly allowed the email voicemail notification to go through.
On the other hand, the email notification is flagged by O365 as “possible Junk” and sent the message to the Junk folder. I tried to tell it that it’s not junk but it is not working. What should I do?