• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

Spamassassin and Plesk

tkalfaoglu

Silver Pleskian
Dear All,

Having installed and running Spamassassin successfully with Plesk integration, I was wondering if anyone has done some work towards deleting incoming email if the score exceeds some number.

I know Amavis can do that, but I was hoping for a quick hack to the shell that scans each incoming email..

Thanks!
-turgut
 
If you use ART's qmail-scanner package with SA, you can modify the file:

/var/qmail/bin/qmail-scanner-queue.pl

find the line my $sa_delete_site='0'
and modify it.
# st: Spam messages with a score higher than
# (required_hits + sa_delete) should be deleted (or rejected).
# Only relevant if SpamAssassin is used. Score of 0
# means deliver all messages. Defaults to 0.
# If sa-quarantine is set, sa-delete must be greater.
my $sa_delete_site='0';
(down around line 211)
 
Back
Top