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

simple qmail filter

Discussion in 'Plesk for Linux - 8.x and Older' started by pcsousa, Feb 1, 2008.

  1. pcsousa

    pcsousa New Pleskian

    22
    73%
    Joined:
    May 2, 2006
    Messages:
    14
    Likes Received:
    0
    Because I didn't found better solution, I made a simple conditional script to run on .qmail (/var/qmail/mailnames/YOURDOMAIN/YOUREMAILACCOUNT/.qmail) pipe.

    Here is my .qmail file:
    | true
    | if [ -n "`grep 'This is a permanent error'`" ]; then exit 100; else exit 0; fi
    ./Maildir/

    This will filter all incoming email and ignore every with 'This is a permanent error' somewhere in body, subject or headers, otherwise will put message at maildir. You can apply any filter you want.

    Regards.
     
  2. dash

    dash Regular Pleskian Staff Member

    28
    40%
    Joined:
    Sep 26, 2007
    Messages:
    204
    Likes Received:
    47
    Plesk also uses dot-qmail files to process mail via spamassassin and for some other mail features. so this features will not work with your scheme. Also Plesk will rewrite dot-qmail files during mchk execution or during mailname preferences changes.
     
Loading...