What I am trying to achieve - Bottomline: mails to go in inbox rather spam folder.
I have a server which is running postfix (mail server) and I have 3 domains. Mail server is used for both incoming and outgoing mails..
I am signing with opendkim and have DNS records in place.
After a long observation, I've realized that messages are going in spam due to incorrect mailed-by and signed-by assignment.
consider, my mail server to be mailserver.example.com and 3 other domains are example1.com, example2.com and example3.com
when someone sends an email from firstname.lastname@example.org , it should display:
email@example.com via mailserver.example.com
I have observed that mailjet and amazon emails hardly go into spam, the fact is, 'maybe' because the originating hostname / ip reverse resolves to what mailed-by and signed-by are.
mvs._domainkey.example1.com example1.com:selc:/etc/opendkim/keys/example1_com/selc.private mvs._domainkey.example2.com example2.com:selc:/etc/opendkim/keys/example2_com/selc.private
Domain example1.com KeyFile /etc/opendkim/keys/example1_com/selc Selector selc Domain example2.com KeyFile /etc/opendkim/keys/example2_com/selc Selector selc Canonicalization simple Mode sv Syslog yes LogWhy yes UMask 022 UserID opendkim:opendkim KeyTable /etc/opendkim/KeyTable SigningTable /etc/opendkim/SigningTable ExternalIgnoreList /etc/opendkim/TrustedHosts InternalHosts /etc/opendkim/TrustedHosts Socket inet:34562@localhost X-Header no
example1.com selc._domainkey.example1.com example2.com selc._domainkey.example2.com
Where am I missing?