1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

procmail filtering spam - problem here

Discussion in 'Plesk for Linux - 8.x and Older' started by perler, Sep 19, 2006.

  1. perler

    perler Guest

    0
     
    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 --.@domain.com -/tmp/spamd_full.sock | /usr/bin/maildir ./Maildir/  
    preline procmail /var/qmail/mailnames/domain.com/temp1/.procmail  
    | /usr/bin/sguardstat [email]temp1@domain.com[/email0  
    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-StatusNo  
    $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
     
Loading...