Cannot prevent e-mail from VPS from being marked as, 'spam' in Gmail

February 6, 2014 1.6k views
Hey community, I have followed numerous guides on this help forum (A great resource btw) on setting up outgoing mail on my VPS/Worpdress installation. To sum up the problem, I have installed Postfix, added an SPF record, and ensured my PTR record is there, yet all messages sent from the server are still marked as 'spam' by Google. The original header from Gmail can be found here (some information removed for privacy): I have run out of ideas at this point, as I have seemingly exhausted the guides available to me... I'm wondering if I screwed something up somewhere, and if a pro out there can spot my mistake. Thanks in advance, -- Joseph
1 Answer
Hey everyone,

After going through every step I could find in various tutorials, I still couldn't get this working. Despite the SPF receiving a, 'pass' from Google, basic e-mails from Wordpress (i.e. website registration) were still being marked as spam.

To solve this problem, I decided to basically give up on running my own MTP (mail transfer protocol), and register for Mandrill - a web app run by the MailChimp dudes. They provide a wordpress plugin which pushes all e-mail through Mandrill/SMTP.

Since making the switch, all my messages are appropriately going to the inbox.

Not the best solution for sure. I like to try and keep my services local. That said, it solved the problem for me, and I can move on to other issues.

Hope this helps someone else!
  • Same like me, I have installed DKIM, Clamav, Amavisd, Spamassassin but still going to SPAM in Gmail or Yahoo.

    Still don't know yet why? Can anyone tell us how to fix this without Mandrill or Mailgun ?


Have another answer? Share your knowledge.