• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Deleting High Scoring Spam - Keep Low Scoring Spam

0

00Kell

Guest
I am trying to find a way to automatically delete all spam above a certain score and yet still allow spam above a lower threshold to be marked as spam.

e.g. Spam above 15 gets deleted
Spam abvoe 6 gets flagged with **SPAM**

I have found the .qmail file which controls whether SPAM messages are kept or deleted but have no idea if this can be manipulated to my ends.

Does anyone have any ideas? This was really easy with procmail...

if you have an account set up for Spam Filtering, it should have a .qmail file in /var/qmail/mailnames/domain/username/.qmail with one of the following contents:

If spam is to be deleted:
| /usr/local/psa/bin/psa-spamc -f -u [email protected] -U /tmp/spamd_light.sock -c || exit 99
./Maildir/

If spam is to be left in inbox:
| if [ -z "$SA" ]; then export SA=1; /usr/local/psa/bin/psa-spamc -f -u [email protected] -U /tmp/spamd_light.sock > spamcheck$$; /var/qmail/bin/qmail-local "$USER" "$HOME" "$LOCAL" "" "" "$HOST" "$SENDER" "$DEFAULT" < spamcheck$$; retval=$?; rm -f spamcheck$$; [ $retval = 0 ] && exit 9
9; exit $?; fi
./Maildir/
 
Back
Top