Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Neririn on August 11, 2005, 08:50:10 PM

Title: Spamassasin deleting emails with Score of 15+
Post by: Neririn on August 11, 2005, 08:50:10 PM
Is there any way to set spamassassin to automatically delete emails at a lower score?  I for example have not received a legitimate email with a score of 8 or higher.  I would like to just blow them away if they are >= 8.  Any suggestions?

Thanks!

Neru
Title: Re: Spamassasin deleting emails with Score of 15+
Post by: gordonr on August 12, 2005, 05:45:44 AM
Quote from: "Neririn"
Is there any way to set spamassassin to automatically delete emails at a lower score?  I for example have not received a legitimate email with a score of 8 or higher.  I would like to just blow them away if they are >= 8.  


In 7.0alpha you can select a Custom Reject Level from the server-manager E-mail panel. Mails which exceed this level will be rejected during the SMTP transaction.
Title: Spamassasin deleting emails with Score of 15+
Post by: Knuddi on August 12, 2005, 09:45:07 AM
Good suggestion for a next release. In the mean time you can fiddle with the template handling this.

Open /etc/e-smith/templates-user/.procmailrc/30_spamfilter_sort and modify the amount of "*" in the line

^X-Spam-Level: \\*\\* .... to match the score from which you want emails autodeleted.
Title: Spamassasin deleting emails with Score of 15+
Post by: kruhm on August 21, 2005, 06:30:58 PM
don't forget to expand the template.

for everyone: /sbin/e-smith/signal-event spamfilter-init-procmail

for single user: /sbin/e-smith/signal-event user-modprocmail (username)