1 |
Lately it feels as though amavisd-new has been moving in the direction |
2 |
of just being a handler for AV scanning. Anyhow, there are many |
3 |
annoyances in the current version. Here is a copy paste from the forums |
4 |
for a resolution with the latest stable no longer adding spam scoring in |
5 |
the headers. I'm hoping this will help a few of you on the list that |
6 |
currently use the postfix/amavisd spam filter setup. |
7 |
|
8 |
Original url: |
9 |
http://forums.gentoo.org/viewtopic-t-710521-highlight-spamassassin.html?sid=234cd91d4c7420bf94d8bb787748fd55 |
10 |
|
11 |
Posted: Wed Oct 29, 2008 11:23 am Post subject: Reply with quote |
12 |
<http://forums.gentoo.org/posting.php?mode=quote&p=5263655> |
13 |
------------------------------------------------------------------------ |
14 |
I worked with the author of amavisd and found that there is NO WAY to |
15 |
make amavisd add X-Spam-* headers to every message and still have a |
16 |
[possible-spam] level with X-Spam-Status still set to NO without a |
17 |
modification to the code. Below is the modification I made that allows |
18 |
me to check mail in this fashion: |
19 |
|
20 |
*From 0 - 3.5 X-Spam* added, X-Spam-Status: NO, subject unchanged |
21 |
*From 3.5-5.0 X-Spam* added, X-Spam-Status: NO, subject shows |
22 |
[possible-spam] |
23 |
*From 5.0-6.0 X-Spam* added, X-Spam-Status: YES subject: **spam** |
24 |
(procmail moves to Spam |
25 |
folder) |
26 |
*From 6.0-8.01 X-Spam* added, X-Spam-Status: YES subject |
27 |
**blatant-spam** (procmail moves |
28 |
to Spam folder) |
29 |
* From 8.01+ Spam is killed. |
30 |
|
31 |
The modification: in sub add_forwarding_header_edits_per_recip |
32 |
(2.6.1): |
33 |
|
34 |
*Code:* |
35 |
--- amavisd.orig 2008-06-29 02:37:58.000000000 +0200 |
36 |
+++ amavisd 2008-10-27 19:58:16.000000000 +0100 |
37 |
@@ -11125,4 +11125,5 @@ |
38 |
my($bypassed) = $r->bypass_spam_checks; |
39 |
my($do_tag) = $r->is_in_contents_category(CC_CLEAN,1); |
40 |
+$do_tag = 1; |
41 |
my($do_tag2) = $r->is_in_contents_category(CC_SPAMMY); |
42 |
my($do_kill) = $r->is_in_contents_category(CC_SPAM); |