Jason Greb wrote:
> I have Postfix with Courier, SpamAssassin and Amavisd installed. When
> SpamAssassin rates an email with something like 12, how do I go ahead
> and delete it right away so the user never gets it?

from /etc/amavisd.conf:

$sa_tag_level_deflt  = -999;
$sa_tag2_level_deflt = 5.0;
$sa_kill_level_deflt = 10.0;
$sa_dsn_cutoff_level = 10;

all email gets a X-Spam-Status: header, to let you know how they score.
all email above 5.0 is marked as spam
all email above 10.0 is delivered to /dev/null

> I am also thinking of moving them to a folder, and having that folder
> empty itself every so many days. Is this possible?

to move them, use procmail

this rule, taken from my ~/Procmail/rc.filter;

:0:
* ^X-Spam-Status: Yes
.Junk/

moves all email that scores more than 5.0 to Junk/

as for automatically expunging, I don't know.

Cheers,
-- 
Morten
_______________________________________________
tsl-discuss mailing list
[email protected]
http://lists.trustix.org/mailman/listinfo/tsl-discuss

Reply via email to