I have a test server on Vultr and it’s no longer able to email voicemails out automatically. I can manually send an email just fine from the command prompt, so I’m wondering if this is a postfix issue.
Not sure where to look. So far I’ve tried
buying a domain from godaddy for $2.99, adding it to Vultr, and telling godaddy to use the Vultr NS servers.
set the from address in voicemail admin and the one setting in Advanced settings.
I checked /etc/postfix/main.cf and saw it was not changed there so I manually set the myhostname and mydomain fields
restarted postfix and asterisk for good measure
checked that reverse dns lookup is working
verified the domain with google (added the txt record to Vultr and made sure Google accepted it)
mailq shows empty
What I get now is that voicemails to a gmail account bounce and while others do not show a bounce in the mail log they just never get delivered. Manually sending emails to non-gmail accounts from the command prompt still works, gmail still gets bounced.
I noticed that it’s sending from [email protected] when sending a voicemail notification, but it sends from root when done from the command prompt. Cant imagine that’s my issue, but maybe that’s worth changing?
Based on the maillog you posted it looks like mail is sending properly using your Microsoft direct send. You can see your specific microsoft domain over port 25 and getting a status 250 sent in return. This is normal.
Run a message trace for sent emails from the mailbox you are using to send and see what is happening. Then look at the recipient side and do the same thing.
When using direct send through your Office 365 tenant make sure you have a connector for the IP address of your FreePBX server. This will allow your SPF (assuming it is correct) to auth the emails.
you honestly shouldnt mess with it if you arent ready.
you’d set up SPF / DKIM records at wherever your DNS is hosted (godaddy?)
you’d have to configure your SENDING service to handle DKIM properly,
you’d have to configure DNS to be SPF compliment
then you could start messign with DMARC (that just basically tells receiving servers what to do if DKIM/SPF checks fail.)
but you don’t appears to have DMARC set up
so you didn’t fail due to DMARC
so that is unlikely to be your issue
I saw in the o365 quarantine logs that the email coming from [email protected] traces back to [email protected], so I changed the serveremail (Server Email in Voicemail admin) back to [email protected] to see if that will help. Now I can’t restart postfix. Not sure if I broke something.
Not sure if this is applicable here - but Vultr blocks email servers by default. Might be worth requesting them to unblock those ports. Again not sure if that will benefit anything - but can’t hurt to rule it out.
Thanks. I dont think that’s what’s going on here since my messages do get out, they’re just getting bounced back by Google and quarantined by Microsoft.
Neither. Just made some tweaks to the spf record at Vultr and now emails are at least getting through Microsoft, still bouncing from Google. Probably need to update the record to include Google as well. Not sure what else to try.