1

Topic: iRedMail Gmail marks mail as spam.

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
======== Required information ====
- iRedMail version: 0.8.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Ubuntu 13.05
- Related log if you're reporting an issue:
====

Hi All,

I'm experiencing some problems with my iredmail installation. I've got two domains configured at the moment (timsterk.nl and rsw-gooi.nl). All the mail sent from timsterk.nl to my gmail account is accepted without a problem, all the mail sent from rsw-gooi.nl is marked as spam.

I've searched this forum (and google for that matter) for a solution to this problem, but all I can find is solutions saying you should use spf and dkim records. I do not have either of these configured in my dns because this is not obligated for gmail, and I've had previous iredmail installations which worked fine (with the same domain name's) who also didn't use dkim and spf records.

Underneath I've posted the header of a mail message that is accepted without a problem:

Delivered-To: tim.sterk@gmail.com
Received: by 10.59.8.7 with SMTP id dg7csp412782ved;
        Tue, 24 Sep 2013 23:34:24 -0700 (PDT)
X-Received: by 10.180.198.115 with SMTP id jb19mr21062335wic.28.1380090864146;
        Tue, 24 Sep 2013 23:34:24 -0700 (PDT)
Return-Path: <postmaster@timsterk.nl>
Received: from hosting.timsterk.nl (timsterk.nl. [149.210.137.70])
        by mx.google.com with ESMTP id cq8si14182747wjc.61.1969.12.31.16.00.00;
        Tue, 24 Sep 2013 23:34:24 -0700 (PDT)
Received-SPF: pass (google.com: best guess record for domain of postmaster@timsterk.nl designates 149.210.137.70 as permitted sender) client-ip=149.210.137.70;
Authentication-Results: mx.google.com;
       spf=pass (google.com: best guess record for domain of postmaster@timsterk.nl designates 149.210.137.70 as permitted sender) smtp.mail=postmaster@timsterk.nl
Received: from localhost (hosting.timsterk.nl [127.0.0.1])
    by hosting.timsterk.nl (Postfix) with ESMTP id ABB51120AA9
    for <tim.sterk@gmail.com>; Wed, 25 Sep 2013 08:34:23 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at hosting.timsterk.nl
Received: from hosting.timsterk.nl ([127.0.0.1])
    by localhost (hosting.timsterk.nl [127.0.0.1]) (amavisd-new, port 10024)
    with ESMTP id ekQqIkizXanq for <tim.sterk@gmail.com>;
    Wed, 25 Sep 2013 08:34:23 +0200 (CEST)
Received: from hosting.timsterk.nl (hosting.timsterk.nl [127.0.0.1])
    by hosting.timsterk.nl (Postfix) with ESMTPA id 3EA2B120AA8
    for <tim.sterk@gmail.com>; Wed, 25 Sep 2013 08:34:22 +0200 (CEST)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8;
 format=flowed
Content-Transfer-Encoding: 7bit
Date: Wed, 25 Sep 2013 08:34:21 +0200
From: postmaster@timsterk.nl
To: tim.sterk@gmail.com
Subject: Test
Message-ID: <498e61b18a1a8b0e7aba61b6b23ce2de@timsterk.nl>
X-Sender: postmaster@timsterk.nl
User-Agent: RoundCube WebMail

And underneath the headers of a rejected message:

Delivered-To: tim.sterk@gmail.com
Received: by 10.59.8.7 with SMTP id dg7csp424271ved;
        Wed, 25 Sep 2013 03:35:53 -0700 (PDT)
X-Received: by 10.180.182.15 with SMTP id ea15mr22054427wic.16.1380105352725;
        Wed, 25 Sep 2013 03:35:52 -0700 (PDT)
Return-Path: <mailflow@rsw-gooi.nl>
Received: from hosting.timsterk.nl (rsw-gooi.nl. [149.210.137.70])
        by mx.google.com with ESMTP id 19si14497585wjz.155.1969.12.31.16.00.00;
        Wed, 25 Sep 2013 03:35:52 -0700 (PDT)
Received-SPF: pass (google.com: best guess record for domain of mailflow@rsw-gooi.nl designates 149.210.137.70 as permitted sender) client-ip=149.210.137.70;
Authentication-Results: mx.google.com;
       spf=pass (google.com: best guess record for domain of mailflow@rsw-gooi.nl designates 149.210.137.70 as permitted sender) smtp.mail=mailflow@rsw-gooi.nl
Received: from localhost (hosting.timsterk.nl [127.0.0.1])
    by hosting.timsterk.nl (Postfix) with ESMTP id 47FDF120AAA
    for <tim.sterk@gmail.com>; Wed, 25 Sep 2013 12:35:52 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at hosting.timsterk.nl
Received: from hosting.timsterk.nl ([127.0.0.1])
    by localhost (hosting.timsterk.nl [127.0.0.1]) (amavisd-new, port 10024)
    with ESMTP id kNE0_8YWIunQ for <tim.sterk@gmail.com>;
    Wed, 25 Sep 2013 12:35:52 +0200 (CEST)
Received: from hosting.timsterk.nl (hosting.timsterk.nl [127.0.0.1])
    by hosting.timsterk.nl (Postfix) with ESMTPA id D7EEC120AA8
    for <tim.sterk@gmail.com>; Wed, 25 Sep 2013 12:35:50 +0200 (CEST)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8;
 format=flowed
Content-Transfer-Encoding: 7bit
Date: Wed, 25 Sep 2013 12:35:50 +0200
From: mailflow@rsw-gooi.nl
To: tim.sterk@gmail.com
Subject: Test
Message-ID: <4ec07ffdf788af37dd3375face7cd516@rsw-gooi.nl>
X-Sender: mailflow@rsw-gooi.nl
User-Agent: RoundCube WebMail

And underneath the headers of a different iredmail setup (also without dkim and spf) which works fine:

Delivered-To: tim.sterk@gmail.com
Received: by 10.59.8.7 with SMTP id dg7csp424719ved;
        Wed, 25 Sep 2013 03:44:52 -0700 (PDT)
X-Received: by 10.180.189.9 with SMTP id ge9mr22165733wic.52.1380105892022;
        Wed, 25 Sep 2013 03:44:52 -0700 (PDT)
Return-Path: <sterk@knivoj.nl>
Received: from server2.timsterk.nl ([77.72.145.194])
        by mx.google.com with ESMTP id ul8si14532753wjc.64.1969.12.31.16.00.00;
        Wed, 25 Sep 2013 03:44:51 -0700 (PDT)
Received-SPF: neutral (google.com: 77.72.145.194 is neither permitted nor denied by best guess record for domain of sterk@knivoj.nl) client-ip=77.72.145.194;
Authentication-Results: mx.google.com;
       spf=neutral (google.com: 77.72.145.194 is neither permitted nor denied by best guess record for domain of sterk@knivoj.nl) smtp.mail=sterk@knivoj.nl
Received: from localhost (localhost [127.0.0.1])
    by server2.timsterk.nl (Postfix) with ESMTP id D1A65F99AC
    for <tim.sterk@gmail.com>; Wed, 25 Sep 2013 14:44:49 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at server2.timsterk.nl
Received: from server2.timsterk.nl ([127.0.0.1])
    by localhost (server2.timsterk.nl [127.0.0.1]) (amavisd-new, port 10024)
    with ESMTP id z8lxxjCNaL2l for <tim.sterk@gmail.com>;
    Wed, 25 Sep 2013 14:44:31 +0200 (CEST)
Received: from server2.timsterk.nl (localhost [127.0.0.1])
    by server2.timsterk.nl (Postfix) with ESMTPA id 3C52CF98F2
    for <tim.sterk@gmail.com>; Wed, 25 Sep 2013 14:44:25 +0200 (CEST)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8;
 format=flowed
Content-Transfer-Encoding: 7bit
Date: Wed, 25 Sep 2013 14:44:24 +0200
From: sterk@knivoj.nl
To: <tim.sterk@gmail.com>
Subject: Test
Message-ID: <bd3deb68607f1887e6c0abc8863278ed@knivoj.nl>
X-Sender: sterk@knivoj.nl
User-Agent: RoundCube WebMail

Is there anybody who can help me with a solution that doesn't use dkim or spf?
If you need anymore information, please let me know.

Thanks in advance for your help!

----

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

2

Re: iRedMail Gmail marks mail as spam.

Which server marks the email as spam? Gmail or yours?

btw if you have dns control you should configure DKIM and SPF. It's not that hard to setup.

3

Re: iRedMail Gmail marks mail as spam.

Gmail marks it as spam, when I'm mailing to my work address it is accepted without a problem.

4

Re: iRedMail Gmail marks mail as spam.

I agree with @hferreira. Add SPF and DKIM records please.

5

Re: iRedMail Gmail marks mail as spam.

I'm sorry, but I just cannot agree with this. This hasn't been necessary for me with earlier setups of iRedMail which are still working fine.

If there is no other solution I'll just have to abandon iRedMail.

6

Re: iRedMail Gmail marks mail as spam.

SPF and DKIM help other mail servers to understand whether you're spam or not. I really cannot understand why it's so hard for you to add them.

You complain mail was marked as spam in Google, but don't want to do something to avoid it. Why not just give it a try?