• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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