All emails sent by Postfix going to spam again.

Asked a similar question a few years ago, ended up switching to Mailgun out of frustration. However, after a while I did get PHP mail to work with Postfix, however since then I have moved to a new domain, and all emails are once again going to spam. Here is the header for an email I just attempted to send:

Delivered-To: REMOVED
Received: by with SMTP id k9csp2893351wma;
        Wed, 18 May 2016 09:46:21 -0700 (PDT)
X-Received: by with SMTP id sc2mr8618309wjb.105.1463589981978;
        Wed, 18 May 2016 09:46:21 -0700 (PDT)
Return-Path: <>
Received: from ( [])
        by with ESMTP id wa2si11436041wjc.62.2016.
        for <REMOVED>;
        Wed, 18 May 2016 09:46:21 -0700 (PDT)
Received-SPF: pass ( domain of designates as permitted sender) client-ip=;
       spf=pass ( domain of designates as permitted sender);
       dmarc=pass (p=NONE dis=NONE)
Received: by (Postfix, from userid 33)
	id CCA8A440C9; Wed, 18 May 2016 16:46:20 +0000 (GMT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;; s=mail;
	t=1463589980; bh=HZn9uvYSPY3pIaPJQU/WXOraQOjFGWTOhME4zzh4IFc=;
Subject: Lost username
From: TP Tennis <>
Organization: TP Tennis
Message-Id: <>
Date: Wed, 18 May 2016 16:46:20 +0000 (GMT)

You requested to have your username at TP Tennis sent back to you.

Your username is: username

Any help is appreciated

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.


It looks like you’ve got your SPF record set up, so that’s a step in the right direction!

I recommend reviewing Google’s Bulk Senders Guidelines and more specifically the Authentication section on this page.

If you are still having trouble with mail to Gmail being marked as SPAM after taking steps recommended in that article, please open a ticket up with us and we would be glad to take a closer look!