All emails sent by Postfix going to spam again.

May 18, 2016 1.9k views
PHP Email Apache DigitalOcean Ubuntu

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

1 Answer


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!

Have another answer? Share your knowledge.