Koozali.org: home of the SME Server

Spamassasin deleting emails with Score of 15+

Offline Neririn

  • ****
  • 100
  • +0/-0
Spamassasin deleting emails with Score of 15+
« 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
......

Offline gordonr

  • *
  • 646
  • +0/-0
    • http://www.smeserver.com.au/
Re: Spamassasin deleting emails with Score of 15+
« Reply #1 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.
............

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
Spamassasin deleting emails with Score of 15+
« Reply #2 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.

Offline kruhm

  • *
  • 680
  • +0/-0
Spamassasin deleting emails with Score of 15+
« Reply #3 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)