1

Topic: Spam Headers X-Spam...

==== Provide required information to help troubleshoot and get quick answer ====
- Linux/BSD distribution name and version: CentOS6
- iRedMail version and backend (LDAP/MySQL): 1.3.1 (MySQL)
- Any related log? Log is helpful for troubleshooting.
====
I am trying to enable the Spamheaders for Mails. I found http://www.iredmail.org/forum/topic2354 … tatus.html and did all the changes described but without success. Can you help me?

Regards
Jens

----

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

2

Re: Spam Headers X-Spam...

BigJens wrote:

did all the changes described

But what did you exactly change?

Also, search 'header' in this page: http://www.iredmail.org/faq.html

3

Re: Spam Headers X-Spam...

ZhangHuangbin wrote:
BigJens wrote:

did all the changes described

But what did you exactly change?

Also, search 'header' in this page: http://www.iredmail.org/faq.html

First of all I changed this line in amavisd.conf

$sa_tag_level_deflt  = -100;  # add spam info headers if at, or above that level

Then I restarted amavis.d

I expect to see some tags in the header of all mails now, correct?

4

Re: Spam Headers X-Spam...

BigJens wrote:
ZhangHuangbin wrote:
BigJens wrote:

did all the changes described

But what did you exactly change?

Also, search 'header' in this page: http://www.iredmail.org/faq.html

First of all I changed this line in amavisd.conf

$sa_tag_level_deflt  = -100;  # add spam info headers if at, or above that level

Then I restarted amavis.d

I expect to see some tags in the header of all mails now, correct?

BTW: Is it possible to add a X-Greylist header as well?

5

Re: Spam Headers X-Spam...

BigJens wrote:

I expect to see some tags in the header of all mails now, correct?

Please update Amavisd config file by following FAQ article as mentioned in my previous post.

BigJens wrote:

BTW: Is it possible to add a X-Greylist header as well?

Yes, there's an option in Policyd config file.

6

Re: Spam Headers X-Spam...

I did everything as adviced here: http://www.iredmail.org/forum/post845.html#p845 - still no headers. Is there anything else I should do?

7

Re: Spam Headers X-Spam...

Please clearly describe what you did, and show us email header.

8 (edited by BigJens 2012-02-21 16:49:53)

Re: Spam Headers X-Spam...

ZhangHuangbin wrote:

Please clearly describe what you did, and show us email header.

We first enabled this:

# ------------ Disclaimer Setting ---------------
# Uncomment this line to enable singing disclaimer in outgoing mails.
$defang_maps_by_ccat{+CC_CATCHALL} = [ 'disclaimer' ];

Then we decreased the spam score

$sa_tag_level_deflt  = -100;  # add spam info headers if at, or above that level 

and restarted amavis/amavisd service.

Here is the mail header:

Return-Path: <bigjens@googlemail.com>
Delivered-To: bigjens@my_domain.de
Received: from localhost (localhost.localdomain [127.0.0.1])
    by our_server.net (Postfix) with ESMTP id AB5A71A22B5
    for <bigjens@my_domain.de>; Tue, 21 Feb 2012 09:26:54 +0100 (CET)
X-Virus-Scanned: by Amavis at our_server.net
Received: from our_server.net ([127.0.0.1])
    by localhost (our_server.net [127.0.0.1]) (amavisd-new, port 10024)
    with ESMTP id jfcMcvaGHsau for <bigjens@my_domain.de>;
    Tue, 21 Feb 2012 09:26:54 +0100 (CET)
X-Original-Helo: mail-iy0-f181.google.com (iRedMail: [url]http://www.iredmail.org/)[/url]
X-Greylist: Passed host: 209.85.210.181
Received: from mail-iy0-f181.google.com (unknown [209.85.210.181])
    (using TLSv1 with cipher RC4-SHA (128/128 bits))
    (No client certificate requested)
    by our_server.net (Postfix) with ESMTPS id 040CE1A22AA
    for <bigjens@my_domain.de>; Tue, 21 Feb 2012 09:26:53 +0100 (CET)
Received: by iakl21 with SMTP id l21so10512359iak.26
        for <bigjens@my_domain.de>; Tue, 21 Feb 2012 00:26:52 -0800 (PST)
Received-SPF: pass (google.com: domain of bigjens@googlemail.com designates 10.42.145.131 as permitted sender) client-ip=10.42.145.131;
Authentication-Results: mr.google.com; spf=pass (google.com: domain of bigjens@googlemail.com designates 10.42.145.131 as permitted sender) smtp.mail=bigjens@googlemail.com; dkim=pass header.i=bigjens@googlemail.com
Received: from mr.google.com ([10.42.145.131])
        by 10.42.145.131 with SMTP id f3mr30568414icv.8.1329812812848 (num_hops = 1);
        Tue, 21 Feb 2012 00:26:52 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=googlemail.com; s=gamma;
        h=mime-version:date:message-id:subject:from:to:content-type;
        bh=Oc9/RjTDIQxdtgXtC0Ha+HwY4339RG2bn8OAAKC6w94=;
        b=P1UfzTXPo4uATStKUjaTjf1Bamp0Z6fzpxCxeOArDOXqF/OUYaZ5wksWouSbmDA7t1
         C+ZqejLVoAdw5aTDGHFfV7QzHxc8GnQ2wPoOxUxCcK+Tjbdr1D8eKa1YTJdXxti2IS/d
         C5HQZwhfcN3iIl6rklL5iZvmEstYbD3aH4J8w=
MIME-Version: 1.0
Received: by 10.42.145.131 with SMTP id f3mr24575431icv.8.1329812465197; Tue,
 21 Feb 2012 00:21:05 -0800 (PST)
Received: by 10.43.44.200 with HTTP; Tue, 21 Feb 2012 00:21:05 -0800 (PST)
Date: Tue, 21 Feb 2012 09:21:05 +0100
Message-ID: <CAAOBNGwPq2Nz1W2EmOk+AExjFjRdmpfk8RbprWNghbU=JMBoSw@mail.gmail.com>
Subject: test
From: Big Jens <bigjens@googlemail.com>
To: bigjens@my_domain.de
Content-Type: multipart/alternative; boundary=90e6ba6e86fc9b238f04b97517ae

--90e6ba6e86fc9b238f04b97517ae
Content-Type: text/plain; charset=UTF-8



--90e6ba6e86fc9b238f04b97517ae
Content-Type: text/html; charset=UTF-8

<br>

--90e6ba6e86fc9b238f04b97517ae--

9

Re: Spam Headers X-Spam...

Did you add your domain 'my_domain.de' in Amavisd setting '@local_domains_maps'?

10

Re: Spam Headers X-Spam...

That did the trick. Thanks!

X-Amavis-Modified: Mail body modified (using disclaimer) - my_server.net
X-Virus-Scanned: by Amavis at my_server.net
X-Spam-Flag: NO
X-Spam-Score: 0.575
X-Spam-Level: 
X-Spam-Status: No, score=0.575 tagged_above=-100 required=6.2
    tests=[HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RDNS_NONE=1.274]
    autolearn=no