• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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