Title: Deleting Spam
I've modified the patch I posted ten days ago, now it's possible to delete messages over a threshold.

Donwload from: <http://xoomer.virgilio.it/j.toribio/qmail-scanner/>

--sa-quarantine [num]           (default: 0)
Spam messages over this score should be quarantined.
Only relevant if SpamAssassin is used and is greater than
the "required_hits" set in the configuration file of
spamassassin.. Score of 0 means deliver all messages.

--sa-delete [num]               (default: 0)
Spam messages over this score should be deleted.
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,
of course, must be even greater than the "required_hits"
set in the configuration file of spamassassin.

The routine "sub spamassassin" checks if the values are setting right:

required_hits < sa-quarantine < sa-delete

It's possible to set sa-quarantine to 0 and sa-delete to another value, the mail will be deleted but not quarantined.

The message is deleted (really not copied to "new") in the routine "sub email_quarantine_report".

After it is installed just edit the file qmail-scanner-queue.pl to change the values of sa-quarantine and sa-delete.

Salvatore

Reply via email to