1

Topic: SPF=pass, DKIM=pass, Spamhaus not blacklisted but still going to spam

==== Required information ====
- iRedMail version: 0.8.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Mysql
- Linux/BSD distribution name and version: Centos 6.5
- Related log if you're reporting an issue: Mail still going to spam even though SPF, DKIM is pass. a sample mail header from gmail is below.

TXT DNS record: v=spf1 mx mx:mail.abc.info ip4:44.22.55.66 ~all

====

Delivered-To: media@gmail.com
Received: by 10.224.86.198 with SMTP id t6csp38412qal;
        Fri, 30 May 2014 04:21:49 -0700 (PDT)
X-Received: by 10.194.63.46 with SMTP id d14mr21177172wjs.24.1401448909191;
        Fri, 30 May 2014 04:21:49 -0700 (PDT)
Return-Path: <postmaster@.info>
Received: from mail..info (jhkkj.plus.com. [44.22.55.66])
        by mx.google.com with ESMTPS id gs8si7785863wjc.60.2014.05.30.04.21.48
        for <media@gmail.com>
        (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Fri, 30 May 2014 04:21:48 -0700 (PDT)
Received-SPF: pass (google.com: domain of postmaster@.info designates 44.22.55.66 as permitted sender) client-ip=44.22.55.66;
Authentication-Results: mx.google.com;
       spf=pass (google.com: domain of postmaster@.info designates 44.22.55.66 as permitted sender) smtp.mail=postmaster@.info;
       dkim=pass header.i=@.info
Received: from localhost (mail..info [127.0.0.1])
by mail..info (Postfix) with ESMTP id 7C8573380
for <media@gmail.com>; Fri, 30 May 2014 12:21:47 +0100 (BST)
Authentication-Results: mail..info (amavisd-new); dkim=pass
reason="pass (just generated, assumed good)" header.d=.info
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=.info; h=
user-agent:message-id:subject:subject:to:from:from:date:date
:content-transfer-encoding:content-type:content-type
:mime-version; s=dkim; t=1401448907; x=1402312908; bh=jEwTDenYg8
Q9Bia5RBfvdx5zWNKDsWDMj53N/iot5NI=; b=E0zf7fB9vGLSsfXkI5oTOCjsz/
0lfPHkn9LMNpY8xVv7w+J00GVUrOacGJh+tBD+ypcUvilkzPVN9OM/SMToKXcmy8
3RlRTxDB5mF0MJPtVlLtuOwu7Xis+J3kSamUG5HZEJvuR/7AN6Jt1pw86vNe7vXK
5RrT75IAuteJ5d3Dc=
X-Virus-Scanned: amavisd-new at mail..info
Received: from mail..info ([127.0.0.1])
by localhost (mail..info [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id Yszfzb6u1-qV for <media@gmail.com>;
Fri, 30 May 2014 12:21:47 +0100 (BST)
Received: from mail..info (mail..info [127.0.0.1])
by mail..info (Postfix) with ESMTPSA id EFA65337B


how are you?

----

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

2

Re: SPF=pass, DKIM=pass, Spamhaus not blacklisted but still going to spam

SPF + DKIM just help to prevent mail been detected as spam, but it doesn't mean it will not be detected as spam.
We don't know how Gmail detects SPAM, so no idea at all.

3

Re: SPF=pass, DKIM=pass, Spamhaus not blacklisted but still going to spam

I have the very same problem.

On my new VPS installed iRedmail, set up SPF, DKIM, DMARC, all mail testers gives me 10/10 and the first email considered as spam by gmail, and by outlook. I'm not on any spam list. Did you managed to solve the problem somehow?

Here are some headers from gmail maybe you see something

----

Delivered-To: ***@***
Received: by 10.36.102.72 with SMTP id k69csp463866itc;
        Sat, 7 Mar 2015 09:55:39 -0800 (PST)
X-Received: by 10.180.208.43 with SMTP id mb11mr30545844wic.52.1425750938810;
        Sat, 07 Mar 2015 09:55:38 -0800 (PST)
Return-Path: <***@***>
Received: from *** (***. [***])
        by mx.google.com with ESMTPS id at6si26054363wjc.119.2015.03.07.09.55.38
        for <***@gmail.com>
        (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Sat, 07 Mar 2015 09:55:38 -0800 (PST)
Received-SPF: pass (google.com: domain of ***@*** designates *** as permitted sender) client-ip=***;
Authentication-Results: mx.google.com;
       spf=pass (google.com: domain of ***@*** designates *** as permitted sender) smtp.mail=***@***;
       dkim=pass header.i=@***;
       dmarc=pass (p=QUARANTINE dis=NONE) header.from=***
Received: from localhost (localhost [127.0.0.1])
    by *** (Postfix) with ESMTP id 6071418E09FA
    for <***@gmail.com>; Sat,  7 Mar 2015 18:55:37 +0100 (CET)
Authentication-Results: *** (amavisd-new); dkim=pass (2048-bit key)
    reason="pass (just generated, assumed good)" header.d=***
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=***; h=
    content-transfer-encoding:content-type:content-type:subject
    :subject:to:mime-version:user-agent:from:from:date:date
    :message-id; s=dkim; t=1425750937; x=1426614938; bh=sF8Gr8cMKWFw
    jr5LhmoKClScS05f8pRncjB0SmuN+AA=; b=5XCE4D9q8rHH8rg/EvoNsEakyJjX
    u7HRR6zvnMD99cxsOClJYqTKO4YpDKNW4ZEsMakYMmQ7ZY/1SXQixSycYMK5WJW2
    s7Ii6jYzoqlNdu/glQdfy3kG5vObyIuS/vC0VQAqNmWytYB+KMnAS7FSD/wwFV4c
    2QMZl7vQgvpDpNalCjRXi197/TE7uQb+WpZBsB9pEWnvir+v0aEOu7E5SSky6pZJ
    W9TA4lEp2+a0WFOBg7M3M1sTDc9AOGa33F8zS5wk+ukqp9wUAoXi0eqiQrd2/4WK
    G5O/xLE/GrsilyebQwLC9artVQDOVkjJS8PddrEU/24ACYxy1JpxROtK/w==
X-Virus-Scanned: Debian amavisd-new at ***
Received: from *** ([127.0.0.1])
    by localhost (*** [***]) (amavisd-new, port 10024)
    with ESMTP id roiFO8fSq-2A for <****@gmail.com>;
    Sat,  7 Mar 2015 18:55:37 +0100 (CET)
Received: from [127.0.0.1] (***.telekom.hu [***])
    by *** (Postfix) with ESMTPSA id F1D5918E09F9
    for <***@gmail.com>; Sat,  7 Mar 2015 18:55:35 +0100 (CET)
Message-ID: <54FB3B99.9090304@***>
Date: Sat, 07 Mar 2015 18:55:37 +0100
From: =?ISO-8859-2?Q?Budai_Andr=E1s?= <*@*>
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: ***@gmail.com</pre>

4

Re: SPF=pass, DKIM=pass, Spamhaus not blacklisted but still going to spam

I don't have a solution for this issue (been delivered to Junk folder).
Some ISPs also check spam status based on IP/sender reputation, or maybe have some other ways to detect spam. it's not what we can control.

5

Re: SPF=pass, DKIM=pass, Spamhaus not blacklisted but still going to spam

Hi to all

I have the same problem too. Hotmail, Yandex mail services accept our mails. Gmail throw them to spam folder. I check everything but no solution yet. I think Gmail spam filter system use an other determination system that we don't know yet.

Best regards

6

Re: SPF=pass, DKIM=pass, Spamhaus not blacklisted but still going to spam

I also had this problem after setting up my vps.  However it turns out that the e-mails were only going to yahoo spam folders because during my testing I was only sending jibberish for the subject and body.  Once I started using at least one word in subject and one word in the body every message went to the in box.  You can still use jibberish but there has to be a real word in the body and subject.  Maybe this was common knowledge to most of you but it sure got me hung up while testing out my new setup.

7

Re: SPF=pass, DKIM=pass, Spamhaus not blacklisted but still going to spam

Now I'm pretty sure I'm running into DKIM config error. I've set up a simple postfix/amavis/spamassassin setup on the same machine,  and my mails suddenly going trough!

If I do a fresh install of iRedmail, I have the same problem (just generated assumed good) mentioned here:

http://www.iredmail.org/forum/topic3809 … sdnew.html

And my emails are suddenly goes to spam folder again.

Maybe it helps?

8

Re: SPF=pass, DKIM=pass, Spamhaus not blacklisted but still going to spam

Just generated assumed good isn't a problem. Is that header included on outgoing emails? Try my solution right at the bottom.(of the link you posted)
Edit. Looked at your original post again, looks on par with my pre-fix email headers which never got flagged as junk. But try my fix to get rid of the outgoing dkim verification