![]() |
SPAM over assigned policy's kill level not deleted automatically
5 Attachment(s)
I created a new "Spamfilter Policy" under Email -> Policy, but it seems as though the policy is not being applied to incoming mail.
My understanding is that if the "SPAM kill level" is set to 15, then messages with a SPAM score >= 15 will be discarded. There seems to be conflicting information regarding the following directive in /etc/amavis/conf.d/50-user: Code:
$final_spam_destiny = D_DISCARD;Quote:
Quote:
Quote:
However, messages with an X-Spam-Score header well over the kill level are not deleted automatically. Here are the headers from one such email message: Code:
X-Virus-Scanned: Debian amavisd-new at example.comThe Spamfilter setting for the domain is set to "Normal", but my understanding is that the Spamfilter setting for the specific mailbox should override the domain-level setting. Am I missing something? |
As you can see in the mail header, a policy where spam tag2 Level = 4.5 is applied to this email:
Quote:
Beside that, please go To spamfilter > User/Domain and post the priority of the domain rule and the mailbox rule. |
Ah, thank you for pointing-out that the filter being applied has 4.5 for the tag2 level. It is the "Normal" filter that is being applied.
In Email -> Spamfilter -> User / Domain, the "Normal" filter has a priority of 5, and the "Auto-Delete Really Spammy Spam" filter has a priority of 10. So, this all makes sense. The part I was missing is the Priority. I have lowered the priority for the "Auto-Delete Really Spammy Spam" filter to 1 and expect that this will correct the issue. My only question: is there any means by which to avoid having to double-check (and potentially change) the Priority value for every user to whom a new policy is applied? To be clear, I would prefer that user-level policies always take precedence over domain-level policies. |
The last time I tested it on my servers, amavis picked up the highest priority first and not the lowest as on your system now, so the way ispconfig assigned the priorities worked here. I will test that again, maybe its a config option or this has been changed in a amavis release.
Which amavis version dp you have installed. |
I'm using amavisd-new-2.6.4.
|
Checked it on my servers here and amavis selects the correct policy (mailbox has precedence before domain rule). I verified this also in the amavis config file where the order is set correctly in the sql querys:
Code:
$sql_select_policy = |
I have not modified the amavis configuration; the MySQL queries in my file look just like yours.
I'll do some additional testing and report back when I figure out exactly what's going on. Thanks for pointing me in the right direction! |
| All times are GMT +2. The time now is 15:40. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.