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

simple qmail filter

pcsousa

New Pleskian
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.
 
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.
 
Back
Top