• 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

Email filtering with regex

rjshelq

New Pleskian
Hi,

I'm using Plesk 8.3, CentOS 5, with qmail and spamassassin.

I would like to install some sort of simple, reliable email filter that would delete a variety of incoming email bounce messages whenever they include certain text such as "over quota" or "mailbox full" or "5.2.2". Ideally, the filter expressions would be in regex form.

Are there any existing scripts that do this? If not, what's the best way to add such a feature to Plesk 8.3 without breaking anything?

Thanks....
 
Hello,

No, there is no such feature in Plesk and qmail does not have such feature by default as well. Mail server accepts all messages sent to local accounts.
You can try creating per mailbox mail filters in Mail transfer agent and in webmail:
http://support.uchicago.edu/docs/email/clients/webmail/options/createfilter.html

Or you can try searching for a qmail patch that will enable this functionality on mail server level. In case you find such patch you can use the following article for instructions on how to compile Qmail with custom patches:
http://kb.swsoft.com/en/1161
 
Back
Top