• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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