Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Mail Server
  • Search

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

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
Post Reply
  • Print view
Advanced search
7 posts • Page 1 of 1
ninie1205
Posts: 3
Joined: Tue Jan 14, 2014 9:49 pm

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

Post by ninie1205 » Mon Sep 19, 2016 10:10 pm

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 
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: Gmail & Yahoo mark mails as spam but SPF/DKIM are OK
  • Quote

Post by tjebbeke » Tue Sep 20, 2016 9:21 pm

You have a IPV6 record? Add it to your spf record and create AAAA record and RDNS. Or disable IPV6 in exim.
Top

ninie1205
Posts: 3
Joined: Tue Jan 14, 2014 9:49 pm

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

Post by ninie1205 » Tue Sep 20, 2016 9:29 pm

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.
Top

dpeca
VestaCP Team
Posts: 473
Joined: Wed Nov 25, 2015 7:30 pm

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

Post by dpeca » Tue Sep 20, 2016 11:54 pm

GMail is marking as SPAM everything that is sent via ipv6... :(
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

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

Post by skurudo » Wed Sep 21, 2016 7:05 am

dpeca wrote:GMail is marking as SPAM everything that is sent via ipv6... :(
Even with correct SFP? Really?
Top

dpeca
VestaCP Team
Posts: 473
Joined: Wed Nov 25, 2015 7:30 pm

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

Post by dpeca » Wed Sep 21, 2016 9:40 am

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.
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: Gmail & Yahoo mark mails as spam but SPF/DKIM are OK
  • Quote

Post by tjebbeke » Wed Sep 21, 2016 11:59 am

On my servers, I had 2 IPV6 addresses. I add both to the SPF record and DNS records. Now everything works fine.
Top


Post Reply
  • Print view

7 posts • Page 1 of 1

Return to “Mail Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password