1

Topic: Gmail reports as spam eventhough DKIM and SPF pass

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: Linux es 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19) x86_64 GNU/Linux
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes
- Related log if you're reporting an issue: N/A
====

Hello,

A customer noted that his spam to Gmail arrives in spam boxes. After some examination I found that DKIM and SPF are okay. What else can be wrong? And how do I solve it?

Thanks in advance.

Kind regards,
Lars Jansen
Founder of LJPc

Mail headers:
Delivered-To: {{ my gmail address }}
Received: by 10.194.248.170 with SMTP id yn10csp35520wjc;
        Wed, 16 Nov 2016 01:16:47 -0800 (PST)
X-Received: by 10.194.19.101 with SMTP id d5mr1081892wje.18.1479287807236;
        Wed, 16 Nov 2016 01:16:47 -0800 (PST)
Return-Path: <info@{{ customer domain }}>
Received: from {{ my fqdn mail hostname }} ({{ my fqdn mail hostname }}. [{{ mail hostname (valid IP) }}])
        by mx.google.com with ESMTPS id w4si7169045wmg.1.2016.11.16.01.16.46
        for <{{ my gmail address }}>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 16 Nov 2016 01:16:47 -0800 (PST)
Received-SPF: pass (google.com: domain of info@{{ customer domain }} designates {{ mail hostname (valid IP) }} as permitted sender) client-ip={{ mail hostname (valid IP) }};
Authentication-Results: mx.google.com;
       dkim=pass header.i=@{{ customer domain }};
       spf=pass (google.com: domain of info@{{ customer domain }} designates {{ mail hostname (valid IP) }} as permitted sender) smtp.mailfrom=info@{{ customer domain }}
Received: from {{ my fqdn mail hostname }} ({{ my fqdn mail hostname }} [127.0.0.1]) by {{ my fqdn mail hostname }} (Postfix) with ESMTP id D0B356E1B47 for <{{ my gmail address }}>; Wed, 16 Nov 2016 10:16:40 +0100 (CET)
Authentication-Results: {{ my fqdn mail hostname }} (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d={{ customer domain }}
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d={{ customer domain }}; h= content-type:content-type:mime-version:message-id:to:from:from :subject:subject:date:date:user-agent; s=ljpc1; t=1479287800; x= 1481879801; bh=Ey0hFewyJzJ+m+Dqwnea7+m7dkJIAGQiz7sK/9MM9tg=; b=e LZ2wkSxhaGLDjrrsH9vCYp9YAfydqE9Y/xTVkIIReFjBrrFOtoN6rxaEm1ZbCVjD 57TrK5VMeKAZYepmvfeWuRjGJdQ8IsxjjED76VMfpH3CAdCwkjz6LTrvWG2t8gQc J/JnoQPmoF1Hl37k4HGkm/5Q5UGLWVHWpt+apDFGrA=
X-Virus-Scanned: Debian amavisd-new at {{ my fqdn mail hostname }}
X-Spam-Flag: NO
X-Spam-Score: -0.998
X-Spam-Level:
X-Spam-Status: No, score=-0.998 tagged_above=-100 required=6.31 tests=[ALL_TRUSTED=-1, HTML_MESSAGE=0.001, MIME_QP_LONG_LINE=0.001] autolearn=ham autolearn_force=no
Received: from {{ my fqdn mail hostname }} ([127.0.0.1]) by {{ my fqdn mail hostname }} ({{ my fqdn mail hostname }} [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id MGuieyZDGXx9 for <{{ my gmail address }}>; Wed, 16 Nov 2016 10:16:40 +0100 (CET)
Received: from [10.0.1.2] (unknown [192.168.1.1]) by {{ my fqdn mail hostname }} (Postfix) with ESMTPSA id 93B266E1B44 for <{{ my gmail address }}>; Wed, 16 Nov 2016 10:16:40 +0100 (CET)
User-Agent: Microsoft-MacOutlook/f.18.0.160709
Date: Wed, 16 Nov 2016 10:16:46 +0100
Subject: Testmail
From: Lars Jansen <info@{{ customer domain }}>
To: <{{ my gmail address }}>
Message-ID: <7D680D35-810E-4ADD-B57C-A2F653966CA0@{{ customer domain }}>
Thread-Topic: Testmail
Mime-version: 1.0
Content-type: multipart/alternative; boundary="B_3562136206_1604486726"

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Gmail reports as spam eventhough DKIM and SPF pass

lars wrote:

A customer noted that his spam to Gmail arrives in spam boxes. After some examination I found that DKIM and SPF are okay. What else can be wrong? And how do I solve it?

We don't know how Gmail detects spam, so it's a black box and we have no idea how to get rid of this.

Try to Register your mail domain in Google Postmaster Tools, it's optional, but highly recommended:
http://www.iredmail.org/docs/setup.dns. … ster-tools