Why mail always goes to spam from server?

Posted May 30, 2014 8.2k views
Hi , I am trying to send mail from my domain server using postfix.I configure the postfix as suggested in the digital ocean community. But it always goes to spam and sometimes mail is not delivered at all. I have configured the MX and TXT records in the dns as mentioned in the forum.Please help me to solve the issue.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
3 answers
One of the things that flags mail as spam is the "from" field not matching the server it came from, because it's an instant flag for lying about addresses.

Make sure that the "from" address is always from a domain name that matches the server.
For example, if your website was, make sure your emails are from "", "". Don't use "" if isn't registered to your server too.

Make sure to try and use a name of some kind with the email, eg
From: "William Meade" .
Your emails must be signed so they sent into Inbox, check here how to
by Popute Sebastian Armin
This tutorial will focus on installing and configuring OpenDKIM: an open source implementation of the DKIM sender authentication system.