Quantcast
Channel: iRedMail
Viewing all articles
Browse latest Browse all 14119

How to remove unwanted mail headers?

$
0
0

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

Hello folks,

I just setup iRedMail on my server.

It's working pretty well so far, only problem that I have i that when i send mails to gmail, hotmail and such the mails get received in the "spam" folder.

Here is an example of a received mail on gmail:

Delivered-To: comptedetest1420@gmail.com
Received: by 10.170.196.215 with SMTP id n206csp55901yke;
        Sat, 29 Mar 2014 21:26:02 -0700 (PDT)
X-Received: by 10.180.13.197 with SMTP id j5mr4339929wic.14.1396153561499;
        Sat, 29 Mar 2014 21:26:01 -0700 (PDT)
Return-Path: <kevin@ah1z.com>
Received: from smtp.ah1z.com (smtp.ah1z.com. [195.154.71.182])
        by mx.google.com with ESMTPS id wp4si1594667wjb.216.2014.03.29.21.26.00
        for <comptedetest1420@gmail.com>
        (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Sat, 29 Mar 2014 21:26:01 -0700 (PDT)
Received-SPF: pass (google.com: domain of kevin@ah1z.com designates 195.154.71.182 as permitted sender) client-ip=195.154.71.182;
Authentication-Results: mx.google.com;
       spf=pass (google.com: domain of kevin@ah1z.com designates 195.154.71.182 as permitted sender) smtp.mail=kevin@ah1z.com;
       dkim=pass header.i=@ah1z.com
Received: from localhost (smtp.ah1z.com [127.0.0.1])
    by smtp.ah1z.com (Postfix) with ESMTP id C4952A20D2E
    for <comptedetest1420@gmail.com>; Sun, 30 Mar 2014 06:26:00 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ah1z.com; h=
    user-agent:message-id:references:in-reply-to:subject:subject:to
    :from:from:date:date:content-transfer-encoding:content-type
    :content-type:mime-version; s=dkim; t=1396153560; x=1397017561;
     bh=xQZvPxOGUV1pmUr7rACcisazyTa6Lur9QPeRslfVn4g=; b=kwLINkNO3kYw
    CdRpVfRpkTdvSIYF8W6MLGasbXptSo8pRW85y5qDOeNYVMu+a+q4d/BOg+T1MKhT
    lDTtqSL1E32XuLXIcn1199YiXXbv6O3pVpE5xijN+TH1GtxdWHUFEGRDwOd337NT
    UnxKaNntsogKNswpGK04iP3qWaG/tJU=
X-Virus-Scanned: Debian amavisd-new at smtp.online.net
Received: from smtp.ah1z.com ([127.0.0.1])
    by localhost (smtp.ah1z.com [127.0.0.1]) (amavisd-new, port 10024)
    with ESMTP id 9_7q76Gm83rF for <comptedetest1420@gmail.com>;
    Sun, 30 Mar 2014 06:26:00 +0200 (CEST)
Received: from ah1z.com (smtp.ah1z.com [127.0.0.1])
    by smtp.ah1z.com (Postfix) with ESMTPA id 45917A20D29
    for <comptedetest1420@gmail.com>; Sun, 30 Mar 2014 06:25:59 +0200 (CEST)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8;
format=flowed
Content-Transfer-Encoding: 8bit
Date: Sun, 30 Mar 2014 06:25:59 +0200
From: kevin@ah1z.com
To: comptedetest1420@gmail.com
Subject: Re: test BRO
In-Reply-To: <c7e482205fe6d0254189cf0191651b57@ah1z.com>
References: <c7e482205fe6d0254189cf0191651b57@ah1z.com>
Message-ID: <8f167262fac4dd1192e960dc99d386f6@ah1z.com>
X-Sender: kevin@ah1z.com
User-Agent: RoundCube Webmail

Le 2014-03-30 06:09, kevin@ah1z.com a écrit :
> TEST

As you can see, SPF and DKIM are activated and working properly. My server IP / domain is also not blacklisted in any popular blacklist database.

So I think the problem could come from the "received from: (...) 127.0.0.1" headers.

I searched on this forum and on google a solution, so I edited /usr/lib/postfix/main.cf with this:

header_checks = regexp:/etc/postfix/header_checks

Then i created the file /etc/postfix/header_checks with this:

/^Received: from *127.0.0.1*/    IGNORE

and restarted the server (shutdown -r now) but it didn't make any difference sad

I also tried to edit /usr/share/logwatch/default.conf/services/amavis.conf to add these lines at the end:

$insert_received_line = 0;
$allowed_added_header_fields{lc('Received')} = 0;

then also restarted the server but same problem.

Any help about this would be greatly appreciated!

TIA


Viewing all articles
Browse latest Browse all 14119

Trending Articles