Long-time amavisd-new user here.  Recently put in a new server based
upon Ubuntu 6.06LTS and since doing that I'm not seeing the system
operate the way I'd like.  I'd appreciate any input you could provide.

First some background info.

---------------------------------------------------
SpamAssassin 3.1.7 and required perl modules were installed via CPAN.
amavisd-new-2.4.3 (20060930) is installed from source and NOT from
apt-get Postfix is installed via apt-get and is version 2.2.10 No sql
databases are being used (ex mysql, postgres, etc), only DB.

As a general rule of thumb I'm following the setup laid out
http://www.flakshack.com/anti-spam/wiki/index.php without the chroot.

I've run sa-update.

If I run "spamassassin -D --lint" as my amavisd user I get no errors
except for some meta test undefined dependency info notices.

Local domains are defined as

read_hash(\%local_domains, '/etc/postfix/relay_domains');

[EMAIL PROTECTED]:/tmp# ls -alh /etc/postfix/rela*
-rw-r--r-- 1 root root  43 2006-09-01 16:37 /etc/postfix/relay_domains
-rw-r--r-- 1 root root 12K 2006-10-31 15:11
/etc/postfix/relay_domains.db

[EMAIL PROTECTED]:/tmp# cat /etc/postfix/relay_domains merchant-gould.com OK
merchantgould.com OK

$mydomain = 'merchantgould.com';
$myhostname = 'mailgw3.merchantgould.com';

$spam_quarantine_to is a mailbox that we monitor to ensure messages are
getting tagged properly.

$final_spam_destiny is set to D_REJECT

$sa_spam_subject_tag = '***JUNK*** ';

$sa_tag_level_deflt  = 5.5; # add spam info headers if at, or above that
level;
                            # undef is interpreted as lower than any
spam level $sa_tag2_level_deflt = 10;  # add 'spam detected' headers at
that level to
                            # passed mail, adding address extensions;
$sa_kill_level_deflt = 15; # triggers spam evasive actions
                            # at or above that level:
bounce/reject/drop,
                            # quarantine
$sa_dsn_cutoff_level = 20;   # spam level beyond which a DSN is not
sent,
                            # effectively turning D_BOUNCE into
D_DISCARD;
                            # undef disables this feature and is a
default;

---------------------------------------------------
Here is what I'd like (and what I've had running in the past on previous
versions of both SA and amavisd-new).

1) Only add spamassassin headers when a minimum score of 5.5 is reached
but still deliver the message.
2) If a score of 10 is reached, I'd like to add "***JUNK*** " to the
subject but still deliver the message.
3) I don't want to deliver messages that score 15 or higher.
4) I don't and to send a DSN if a message scores 20 or higher.

---------------------------------------------------

Here is what I am seeing.

For those messages that score 15 or higher, the messages are not
delivered to the intended recipient but are delivered to
$spam_quarantinie_to mailbox so I know they are working.

Logs show messages Blocked SPAM if they score over 15.
Logs show messages Passed SPAMMY if they score over 10.  No SA headers
are added.  Subject is not changed to begin with ***JUNK***.
Logs show messages Passed CLEAN if they score under 10.  No SA headers
are added if a message scores between 5.5 and 10.

As an example from today my logs show the following:

Nov  2 11:32:27 mailgw3 amavis[31474]: (31474-07) Passed SPAMMY,
[89.34.223.28] [89.34.223.28] <[EMAIL PROTECTED]> ->
<[EMAIL PROTECTED]>,<[EMAIL PROTECTED]>,
Message-ID: <[EMAIL PROTECTED]>, mail_id: UqAA9pkWGWQo,
Hits: 10.398, queued_as: 13BD4348537, 6983 ms

My email headers show the following:

Microsoft Mail Internet Headers Version 2.0
Received: from exfrontend.merchant-gould.com ([172.16.1.45]) by
EXCHANGEMSP.MG.LOCAL with Microsoft SMTPSVC(6.0.3790.1830);
         Thu, 2 Nov 2006 11:32:27 -0600
Received: from mailgw3.merchantgould.com ([64.247.209.139]) by
exfrontend.merchant-gould.com with Microsoft SMTPSVC(6.0.3790.211);
         Thu, 2 Nov 2006 11:32:27 -0600
Received: from localhost (localhost [127.0.0.1])
        by mailgw3.merchantgould.com (Postfix) with ESMTP id
13BD4348537;
        Thu,  2 Nov 2006 11:32:27 -0600 (CST)
X-Virus-Scanned: amavisd-new at merchantgould.com
Received: from mailgw3.merchantgould.com ([127.0.0.1])
        by localhost (mailgw3.merchantgould.com [127.0.0.1])
(amavisd-new, port 10024)
        with ESMTP id UqAA9pkWGWQo; Thu,  2 Nov 2006 11:32:20 -0600
(CST)
Received: from pakistanmail.com (unknown [89.34.223.28])
        by mailgw3.merchantgould.com (Postfix) with SMTP;
        Thu,  2 Nov 2006 11:32:19 -0600 (CST)
Message-ID: <[EMAIL PROTECTED]>
Date: Fri, 03 Nov 2006 00:22:01 +0600
From: "Ismael Mertens" <[EMAIL PROTECTED]>
User-Agent: Opera7.23/Win32 M2 build 3227
MIME-Version: 1.0
To: <[EMAIL PROTECTED]>
Subject: FW: TransUnion Client notes altered
Content-Type: text/plain;
        charset="us-ascii"
Content-Transfer-Encoding: 8bit
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 02 Nov 2006 17:32:27.0246 (UTC)
FILETIME=[DD9810E0:01C6FEA4]


What am I missing on this?  Why are the following headers not being
added?

X-Spam-Flag: YES
X-Spam-Score: 10.398
X-Spam-Status: Yes, score=10.398 tag=5.5 tag2=10 kill=15 tests=...
Subject = ***JUNK***...


Next my logs show

mail.log:Nov  2 08:03:29 mailgw3 amavis[23101]: (23101-10) Passed CLEAN,
[154.37.2.195] [154.37.2.195] <[EMAIL PROTECTED]> ->
<[EMAIL PROTECTED]>, Message-ID:
<[EMAIL PROTECTED]>, mail_id: FnFjAid-oIzZ, Hits:
7.557, queued_as: 953FB348513, 7131 ms

Wherease my message headers show

Microsoft Mail Internet Headers Version 2.0
Received: from exfrontend.merchant-gould.com ([172.16.1.45]) by
EXCHANGEMSP.MG.LOCAL with Microsoft SMTPSVC(6.0.3790.1830);
         Thu, 2 Nov 2006 08:03:29 -0600
Received: from mailgw3.merchantgould.com ([64.247.209.139]) by
exfrontend.merchant-gould.com with Microsoft SMTPSVC(6.0.3790.211);
         Thu, 2 Nov 2006 08:03:29 -0600
Received: from localhost (localhost [127.0.0.1])
        by mailgw3.merchantgould.com (Postfix) with ESMTP id 953FB348513
        for <[EMAIL PROTECTED]>; Thu,  2 Nov 2006 08:03:29
-0600 (CST)
X-Virus-Scanned: amavisd-new at merchantgould.com
Received: from mailgw3.merchantgould.com ([127.0.0.1])
        by localhost (mailgw3.merchantgould.com [127.0.0.1])
(amavisd-new, port 10024)
        with ESMTP id FnFjAid-oIzZ for <[EMAIL PROTECTED]>;
        Thu,  2 Nov 2006 08:03:22 -0600 (CST)
Received: from homeloanstore678.com (unknown [154.37.2.195])
        by mailgw3.merchantgould.com (Postfix) with SMTP
        for <[EMAIL PROTECTED]>; Thu,  2 Nov 2006 08:03:19
-0600 (CST)
Message-ID: <[EMAIL PROTECTED]>
Date: Thu, 02 Nov 2006 07:44:18 -0700
Reply-To: "Blake Cohen" <[EMAIL PROTECTED]>
From: "Christy Poole" <[EMAIL PROTECTED]>
X-Accept-Language: en-us
MIME-Version: 1.0
To: <[EMAIL PROTECTED]>
Subject: If you live in Forest Hills, NY Please Complete ASAP
Content-Type: text/plain;
        charset="us-ascii"
Content-Transfer-Encoding: 8bit
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 02 Nov 2006 14:03:29.0748 (UTC)
FILETIME=[ACA9B140:01C6FE87]


Why don't I see the following headers?
X-Spam-Score:  7.557
X-Spam-Status: Yes, score=7.557 tag=5.5 tag2=10 kill=15 tests=...

---------------------------

Sorry for the long message.  I've tried to provide as much background
info as possible.  Does my problem lie with the local domain?

Thanks in advance.

Matt 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to