Jason, On Mon, Nov 14, 2005 at 01:49:32AM -0500, 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?
Think twice, although unlikely, false positives at 12 are not beyond the range of possible things... especially if you play with custom rules. There are many ways. Many people use procmail rules. You can use procmail as a delivery agent in Postfix configuration: mailbox_command = /usr/bin/procmail in main.cf, then use a .procmailrc in user's homes that goes like: :0: * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\* /dev/null I hope I counted 12 stars right. > > I am also thinking of moving them to a folder, and having that folder > empty itself every so many days. Is this possible? This is usually considered a better solution. If you call this folder "Spam" (I'll assume Maildir delivery here), it would go like: :0: * ^X-Spam-Status: Yes Maildir/.Spam/ if you want to deliver any mail scoring above the default spam threshold set in Spam Assassin, or: :0: * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\* Maildir/.Spam/ if you want to set your own threshold (12 in this case) Then any "clean messages older than N days in this mailbox" script will do the job. There are many around, look for "archivemail" in Google. Greets, _Alain_ _______________________________________________ tsl-discuss mailing list [email protected] http://lists.trustix.org/mailman/listinfo/tsl-discuss
