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