Wordpress PostFix password reset email goes to spam folder

October 21, 2016 1.3k views
Apache Ubuntu

Emails sent from Wordpress end up in spam folder. I have read that I need to add an SPF record to my domain name, which I did.

My SPF looks like this:

v=spf1 mx a ip4: ~all

Email header looks like this:

Received: by with SMTP id r35csp1314093edr;
        Fri, 21 Oct 2016 02:30:55 -0700 (PDT)
X-Received: by with SMTP id j141mr9507395wmf.108.1477042255242;
        Fri, 21 Oct 2016 02:30:55 -0700 (PDT)
Return-Path: <>
Received: from malatherapy ([])
        by with ESMTPS id h62si2848317wmg.52.2016.
        for <>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Fri, 21 Oct 2016 02:30:55 -0700 (PDT)
Received-SPF: neutral ( is neither permitted nor denied by best guess record for domain of client-ip=;
       spf=neutral ( is neither permitted nor denied by best guess record for domain of
Received: by malatherapy (Postfix, from userid 33) id EAD8D100098; Fri, 21 Oct 2016 09:30:54 +0000 (UTC)
Subject: [MalaTherapy] Password Reset
X-PHP-Originating-Script: 33:class-phpmailer.php
Date: Fri, 21 Oct 2016 09:30:54 +0000
From: Malatherapy <>
Message-ID: <>
X-Mailer: PHPMailer 5.2.14 (
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

So any ideas?

2 Answers

Update: Fixed the SPF record, but still email goes to spam folder...

Beside spf record, you can try to setup PTR record. Making it on DigitalOcean is easy. Just make sure you Droplet is named with a fully qualified domain name.
To do it, go to Control Panel, select your Droplet and click on its name. It will show you box where you need to edit from existing to new name.
So if your domain is, Droplet should be named as that too.

To verify it's successful, go to Networking, PTR records and it should be there.

After that try sending it again and good luck :)

Have another answer? Share your knowledge.