My situation like the following:
- Web server hosted in Google Cloud with domain name lets say: example.com
- Mail server hosted in Linode (lets say in server name: server.myserver.com) using cPanel with Mail Only and use example.com domain name.
The goal is to separate web and mail server in different server.
In Google DNS :
- I set A record for example.com to Google cloud IP
- I set the MX record to mail.example.com
- I set A record for mail.example.com to Linode IP
- I set SPF and DKIM with TXT record that generated from cPanel (linode side)
- I set PTR to server.myserver.com
- PTR status is passed when I check from http://leafdns.com
- SPF status passed from https://mxtoolbox.com/spf.aspx
- DKIM status passed from https://mxtoolbox.com/dkim.aspx
With all settings above I can get incoming email with no issue, but when try to send an email, all email trapped in SPAM folder.
What's wrong with the settings above? Please help and thanks before :)
UPDATE
After checking email header and get spf and DKIM are pass (OK) but still trapped in spam, so I end it up by using third party of email service. In this case I use Amazon Simple Email Service. Thanks all for your help, really appreciate it.