• 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.

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