• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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