vnpdeals
By:
vnpdeals

Wordpress PostFix password reset email goes to spam folder

October 21, 2016 120 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:46.101.213.139 ~all

Email header looks like this:

Delivered-To: myEmailAddress@gmail.com
Received: by 10.80.140.230 with SMTP id r35csp1314093edr;
        Fri, 21 Oct 2016 02:30:55 -0700 (PDT)
X-Received: by 10.28.185.147 with SMTP id j141mr9507395wmf.108.1477042255242;
        Fri, 21 Oct 2016 02:30:55 -0700 (PDT)
Return-Path: <www-data@mail.malatherapy.com>
Received: from malatherapy ([46.101.213.139])
        by mx.google.com with ESMTPS id h62si2848317wmg.52.2016.10.21.02.30.55
        for <myEmailAddress@gmail.com>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Fri, 21 Oct 2016 02:30:55 -0700 (PDT)
Received-SPF: neutral (google.com: 46.101.213.139 is neither permitted nor denied by best guess record for domain of www-data@mail.malatherapy.com) client-ip=46.101.213.139;
Authentication-Results: mx.google.com;
       spf=neutral (google.com: 46.101.213.139 is neither permitted nor denied by best guess record for domain of www-data@mail.malatherapy.com) smtp.mailfrom=www-data@mail.malatherapy.com
Received: by malatherapy (Postfix, from userid 33) id EAD8D100098; Fri, 21 Oct 2016 09:30:54 +0000 (UTC)
To: myEmailAddress@gmail.com
Subject: [MalaTherapy] Password Reset
X-PHP-Originating-Script: 33:class-phpmailer.php
Date: Fri, 21 Oct 2016 09:30:54 +0000
From: Malatherapy <noreply@malatherapy.com>
Message-ID: <f1e10b59e51faf3b2a874b330f4fda44@malatherapy.com>
X-Mailer: PHPMailer 5.2.14 (https://github.com/PHPMailer/PHPMailer)
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 malatherapy.com, 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.