• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

procmail filtering spam - problem here

P

perler

Guest
hi,

i try to filter some accounts for spam. i use 4PSA SpamGuard here, but it should work with PSA's solution too - but it doesn't..

here is what i have. mail messages are looked at and marked as they should, i.e. the X-Spam-Status: Yes/No tag gets into the header.

i changed the .qmail file of the account in question this way:

PHP:
| /usr/bin/odeiavir  
| /usr/bin/spamc -f -u [email protected] -U /tmp/spamd_full.sock | /usr/bin/maildir ./Maildir/  
| preline procmail /var/qmail/mailnames/domain.com/temp1/.procmail  
| /usr/bin/sguardstat [email][email protected][/email] 0  
| true  
|autoresponder

and put a .procmail file into the same directory. it looks like this:

PHP:
MAILDIR=/var/qmail/mailnames/domain.com/temp1/Maildir/    
:0:
* ^X-Spam-Status: No  
$MAILDIR/SPAM/

as you can see, for testing purposes, i try to filter messages which are NOT spam here. but it doesn't work, all mail is delivered to the users Inbox, nothing to the SPAM folder.

when i change the .procmail file to
PHP:
MAILDIR=/var/qmail/mailnames/domain.com/temp1/Maildir/    
:0:
*
$MAILDIR/SPAM/

everything is delivered to the SPAM folder, as it should.

what is wrong here? why is the first procmail rule not working?

thanks in advance,

PAT
 
Back
Top