Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] amavis not adding spam headers after upgrade
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
redbeardmcg
Apprentice
Apprentice


Joined: 12 Mar 2006
Posts: 171
Location: Suburbia Massachusetts

PostPosted: Wed Oct 08, 2008 6:48 pm    Post subject: [SOLVED] amavis not adding spam headers after upgrade Reply with quote

I recently upgarded to amavisd-new-2.6.1 and am now having issues with spamassassin. No incoming messages are being scanned and the mail header is not being modified. I pasted the syslog messages and relevant amavis config below.

Amavis config snippet:
Code:

$defang_spam = 1;
$remove_existing_x_scanned_headers = 0;
$remove_existing_spam_headers  = 1;
$spam_check_negative_ttl = 10*60; # time to remember that mail was not spam
$spam_check_positive_ttl = 30*60; # time to remember that mail was spam
$sa_local_tests_only = 0;   # only tests which do not require internet access?
$sa_mail_body_size_limit = undef; # don't waste time on SA if mail is larger
$sa_tag_level_deflt  = 3.4; # add spam info headers if at, or above that level;
$sa_tag2_level_deflt = 6.1; # add 'spam detected' headers at that level to
$sa_kill_level_deflt = 8.01; # triggers spam evasive actions
$sa_spam_subject_tag = '***SPAM*** ';   # (defaults to undef, disabled)
@spam_subject_tag_maps  = ('[possible-spam:_SCORE_] ');
@spam_subject_tag2_maps = ('***SPAM*** _SCORE_ (_REQD_) ');
@spam_subject_tag3_maps = ('***BLATANT*SPAM**** _SCORE_ (_REQD_) ');
$sa_spam_modifies_subj = 1; # in @spam_modifies_subj_maps, default is true
$sa_spam_level_char = '*';  # char for X-Spam-Level bar, defaults to '*';
$sa_spam_report_header = 1; # insert X-Spam-Report header field? default false


Mail sent from work email to my mail server at home:
Code:

keg     mail    14:41:39        postfix/smtpd   postfix/smtpd[10040]: connect from sonussf2.sonusnet.com[208.45.178.27]
keg     mail    14:41:39        postfix/smtpd   postfix/smtpd[10040]: EE7478200D: client=sonussf2.sonusnet.com[208.45.178.27]
keg     mail    14:41:40        postfix/cleanup         postfix/cleanup[10044]: EE7478200D: message-id=<1223491240.19899.46.camel@doubleshot>
keg     mail    14:41:40        postfix/qmgr    postfix/qmgr[7276]: EE7478200D: from=<rmcguire@sonusnet.com>, size=1048, nrcpt=1 (queue active)
keg     mail    14:41:40        amavis  amavis[8979]: (08979-03) ESMTP::10024 /var/amavis/tmp/amavis-20081008T130500-08979: <rmcguire@sonusnet.com> -> <ryan@rdmnetworks.com> SIZE=1048 Received: from mail.rdmnetworks.com ([127.0.0.1]) by localhost (mail.rdmnetworks.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP for <ryan@rdmnetworks.com>; Wed, 8 Oct 2008 14:41:40 -0400 (EDT)
keg     mail    14:41:40        postfix/smtpd   postfix/smtpd[10040]: disconnect from sonussf2.sonusnet.com[208.45.178.27]
keg     mail    14:41:40        amavis  amavis[8979]: (08979-03) smtp connection cache, dt: 2177.9, state: 0
keg     mail    14:41:40        amavis  amavis[8979]: (08979-03) Checking: t0qfdcWQFGHA [208.45.178.27] <rmcguire@sonusnet.com> -> <ryan@rdmnetworks.com>
keg     mail    14:41:40        amavis  amavis[8979]: (08979-03) p001 1 Content-Type: text/plain, size: 17 B, name:
keg     local6  14:41:40        clamd   clamd[17958]: SelfCheck: Database status OK.
keg     auth    14:41:44        postfix/smtpd   postfix/smtpd[10049]: sql_select option missing
keg     auth    14:41:44        postfix/smtpd   postfix/smtpd[10049]: auxpropfunc error no mechanism available
keg     auth    14:41:44        postfix/smtpd   postfix/smtpd[10049]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: sql
keg     mail    14:41:44        postfix/smtpd   postfix/smtpd[10049]: connect from unknown[127.0.0.1]
keg     mail    18:41:44        postfix/smtpd   postfix/smtpd[10049]: 6DAF482019: client=unknown[127.0.0.1]
keg     mail    14:41:44        postfix/cleanup         postfix/cleanup[10044]: 6DAF482019: message-id=<1223491240.19899.46.camel@doubleshot>
keg     mail    14:41:44        postfix/qmgr    postfix/qmgr[7276]: 6DAF482019: from=<rmcguire@sonusnet.com>, size=1499, nrcpt=1 (queue active)
keg     mail    18:41:44        postfix/smtpd   postfix/smtpd[10049]: disconnect from unknown[127.0.0.1]
keg     mail    14:41:44        amavis  amavis[8979]: (08979-03) FWD via SMTP: <rmcguire@sonusnet.com> -> <ryan@rdmnetworks.com>,BODY=7BIT 250 2.0.0 Ok, id=08979-03, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 6DAF482019
keg     mail    14:41:44        amavis  amavis[8979]: (08979-03) Passed CLEAN, [208.45.178.27] [24.62.227.44] <rmcguire@sonusnet.com> -> <ryan@rdmnetworks.com>, Message-ID: <1223491240.19899.46.camel@doubleshot>, mail_id: t0qfdcWQFGHA, Hits: 2.726, size: 1047, queued_as: 6DAF482019, 4407 ms
keg     mail    14:41:44        postfix/qmgr    postfix/qmgr[7276]: EE7478200D: removed

_________________
Sacrifice:::Your role may be thankless, but if you're willing to give it your all, you just might bring success to those who outlast you.


Last edited by redbeardmcg on Wed Oct 29, 2008 4:24 pm; edited 1 time in total
Back to top
View user's profile Send private message
elgato319
Guru
Guru


Joined: 15 Sep 2005
Posts: 546

PostPosted: Wed Oct 29, 2008 3:44 pm    Post subject: Reply with quote

the score of this message was to low, so amavis didn't add any info in the header

Quote:

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


Quote:

Passed CLEAN, [208.45.178.27] [24.62.227.44] <rmcguire@sonusnet.com> -> <ryan@rdmnetworks.com>, Message-ID: <1223491240.19899.46.camel@doubleshot>, mail_id: t0qfdcWQFGHA, Hits: 2.726,
Back to top
View user's profile Send private message
redbeardmcg
Apprentice
Apprentice


Joined: 12 Mar 2006
Posts: 171
Location: Suburbia Massachusetts

PostPosted: Wed Oct 29, 2008 4:23 pm    Post subject: Reply with quote

I worked with the author of amavisd and found that there is NO WAY to make amavisd add X-Spam-* headers to every message and still have a [possible-spam] level with X-Spam-Status still set to NO without a modification to the code. Below is the modification I made that allows me to check mail in this fashion:

*From 0 - 3.5 X-Spam* added, X-Spam-Status: NO, subject unchanged
*From 3.5-5.0 X-Spam* added, X-Spam-Status: NO, subject shows [possible-spam]
*From 5.0-6.0 X-Spam* added, X-Spam-Status: YES subject: **spam** (procmail moves to Spam
folder)
*From 6.0-8.01 X-Spam* added, X-Spam-Status: YES subject **blatant-spam** (procmail moves
to Spam folder)
* From 8.01+ Spam is killed.

The modification: in sub add_forwarding_header_edits_per_recip
(2.6.1):

Code:
--- amavisd.orig        2008-06-29 02:37:58.000000000 +0200
+++ amavisd        2008-10-27 19:58:16.000000000 +0100
@@ -11125,4 +11125,5 @@
     my($bypassed)     = $r->bypass_spam_checks;
     my($do_tag)       = $r->is_in_contents_category(CC_CLEAN,1);
+$do_tag = 1;
     my($do_tag2)      = $r->is_in_contents_category(CC_SPAMMY);
     my($do_kill)      = $r->is_in_contents_category(CC_SPAM);

_________________
Sacrifice:::Your role may be thankless, but if you're willing to give it your all, you just might bring success to those who outlast you.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum