View Single Post
Old 9th January 2012, 20:11
cbj4074 cbj4074 is offline
Senior Member
Join Date: Nov 2010
Posts: 395
Thanks: 30
Thanked 58 Times in 50 Posts
Default SPAM over assigned policy's kill level not deleted automatically

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:

$final_spam_destiny = D_DISCARD;
Some say that this directive must be enabled in this specific configuration file for automatic SPAM deletion to occur, while others (e.g., Till) say that this directive is irrelevant, as ISPConfig overrides this value on a per-policy-assignment basis.

Originally Posted by till View Post
The spam kill level is set in ISPConfig for every policy individually and not in this file. the setting in the rc2 was wrong as it caused nmail to be deleted even if spam scanning was deactivated for an account or domain.
Originally Posted by till View Post
Anyway, the configuration that you do in ispconfig when you select a policy overrides these, so they do not matter for all emails domains or mailboxes that you assigned a policy.
Originally Posted by prisfeo View Post
thanks Falko..
check also this strange behaviour i posted here:
(about the "double" amavisd.conf files)

since it can lead not to use correctly amavis...
i think it can be related to some installation issue.

thanks Till..yes i confirm since i have changed & made some
tests in that direction.. too thought that, but from the test i made, have to say that it does not ovveride..
let me explain:

in the amavis conf file i have deleted the two statements groups above
and wrote one group with the following settings:

$final_virus_destiny = D_DISCARD;
$final_spam_destiny = D_DISCARD;
$final_banned_destiny = D_BOUNCE;
$final_bad_header_destiny = D_PASS;

now if i change
$final_spam_destiny = D_DISCARD;
$final_spam_destiny = D_PASS;

and i send a spam gtube test email to account inside ispconfig,
(see above ispconfig tab settings), are not killed (deleted), but
tagged as "SPAM: subject"
even if "SPAM kill level: 6.9"

only putting $final_spam_destiny = D_DISCARD;
i obtain that email with spam hits > 6.9 are killed(deleted)..

so, do you think it's not normal or there's something wrong
into my ispconfig/amavis integration ?
Anyway, the line in question is un-commented in my amavis configuration.

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:

X-Virus-Scanned: Debian amavisd-new at
X-Spam-Flag: YES
X-Spam-Score: 27.428
X-Spam-Level: ***************************
X-Spam-Status: Yes, score=27.428 tagged_above=1 required=4.5
tests=[BAYES_99=3.5, DATE_IN_FUTURE_24_48=2.048,
URIBL_SBL=1.623, URIBL_WS_SURBL=1.608] autolearn=spam
Screen captures of the Spampolicy Filter settings, and of the individual mailbox's Spamfilter setting are attached.

The 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?
Attached Images
Reply With Quote
Sponsored Links