Page 1 of 1

Gmail & Yahoo mark mails as spam but SPF/DKIM are OK

Posted: Mon Sep 19, 2016 10:10 pm
by ninie1205
Hi,

I have a digitalocean droplet with 2 domains attached to it and an e-mail address for each of them.
I have configured them, defined the DNS records accordingly but the e-mails are still going into the spam folder.
What am I doing wrong? The IP is not blacklisted. I have attached the header response in gmail account:

Code: Select all

Delivered-To: [email protected]
Received: by 10.80.166.202 with SMTP id f10csp830961edc;
        Mon, 19 Sep 2016 14:39:04 -0700 (PDT)
X-Received: by 10.233.232.149 with SMTP id a143mr32169394qkg.79.1474321143927;
        Mon, 19 Sep 2016 14:39:03 -0700 (PDT)
Return-Path: <[email protected]>
Received: from viralmonkey.lol (viralmonkey.lol. [192.241.173.132])
        by mx.google.com with ESMTPS id j86si16244455qkh.207.2016.09.19.14.39.03
        for <[email protected]>
        (version=TLS1_2 cipher=AES128-SHA bits=128/128);
        Mon, 19 Sep 2016 14:39:03 -0700 (PDT)
Received-SPF: pass (google.com: domain of [email protected] designates 192.241.173.132 as permitted sender) client-ip=192.241.173.132;
Authentication-Results: mx.google.com;
       dkim=pass [email protected];
       spf=pass (google.com: domain of [email protected] designates 192.241.173.132 as permitted sender) [email protected];
       dmarc=pass (p=NONE dis=NONE) header.from=viralmonkey.lol
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=viralmonkey.lol; s=mail; h=Content-Type:MIME-Version:Subject:Message-ID:To:From:Date; bh=h+77O97V6zPu6AMvhizQfe9uWjAZerDu8rY/Htatc1o=; b=nxMtEO8ljgrAFv+/3y633Nnw0bCH1bJSm1Hzr4UPe5OIFZgC0xrdVyjaH5Iu8ewCGNJ3odx3rgis89JSeYcvmad5rfG1PWitFo8k3v995t+FOlbiy/c5G9Uc3DH4M1/YBsrYtTlwsEgzwYAeMQill7BcRHBcHUGpAqdCBz3SaoU=;
Received: from [176.223.58.6] (helo=Ninis-Mac-mini.mail) by viralmonkey.lol with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from <[email protected]>) id 1bm6HH-0000dL-9a for [email protected]; Mon, 19 Sep 2016 21:39:03 +0000
Date: Tue, 20 Sep 2016 00:38:56 +0300
From: "viralmonkey.lol" <[email protected]>
To: Green Taxi <[email protected]>
Message-ID: <[email protected]>
Subject: dsjhdjs
X-Mailer: Airmail (382)
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="57e05af0_7174b1b9_255"

--57e05af0_7174b1b9_255
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline 

Re: Gmail & Yahoo mark mails as spam but SPF/DKIM are OK

Posted: Tue Sep 20, 2016 9:21 pm
by tjebbeke
You have a IPV6 record? Add it to your spf record and create AAAA record and RDNS. Or disable IPV6 in exim.

Re: Gmail & Yahoo mark mails as spam but SPF/DKIM are OK

Posted: Tue Sep 20, 2016 9:29 pm
by ninie1205
I have already done that, the first line in exim4.conf.template is disable_ipv6 = true
Anyway, in the meantime I have played with the DNS records, I have changed the MX priority for one of the domains to 5 and now e-mails go into the inbox folder. Thank you.

Re: Gmail & Yahoo mark mails as spam but SPF/DKIM are OK

Posted: Tue Sep 20, 2016 11:54 pm
by dpeca
GMail is marking as SPAM everything that is sent via ipv6... :(

Re: Gmail & Yahoo mark mails as spam but SPF/DKIM are OK

Posted: Wed Sep 21, 2016 7:05 am
by skurudo
dpeca wrote:GMail is marking as SPAM everything that is sent via ipv6... :(
Even with correct SFP? Really?

Re: Gmail & Yahoo mark mails as spam but SPF/DKIM are OK

Posted: Wed Sep 21, 2016 9:40 am
by dpeca
Yes :(

I had a machine with everything configured correct:
- server hostname pointing to IPv4 (A record)
- server hostname pointing to IPv6 (AAAA record)
- reverse PTR record on IPv4 (pointing to server hostname)
- reverse PTR record on IPv6 (pointing to server hostname)
- correct SPF
- correct DKIM
- correct DMARC

Mail-tester score 10/10.
Server didn't send any email for a 30 days... completly new server, new IP.
And GMail marked it as SPAM :)

Then I switched to IPv4, and email started to go to Inbox... :)

People that are programming GMail SPAM filters are crazy.
Really.

Re: Gmail & Yahoo mark mails as spam but SPF/DKIM are OK

Posted: Wed Sep 21, 2016 11:59 am
by tjebbeke
On my servers, I had 2 IPV6 addresses. I add both to the SPF record and DNS records. Now everything works fine.