Why mail always goes to spam from server?

May 30, 2014 3.3k 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.
2 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.
Have another answer? Share your knowledge.