If any of the postfix-patterns match the mail, it will be rejected. Even if it's a legitmate mail with a strang subject. You can run amavis as a proxy_filter instead of content_filter. This will also reject mails classified as spam after amavis / spamassassin check the mail.
Hi All, i have implemented the script. It is working fine. What i notice is that the content filter does filter before an email gets whitelisted. Example: a whitelisted domain "@whitelist.com" sends me an email with the content C i a l i s. The content filter will block and reject the email. Is there a way to bypass the content filter when the domain is whitelisted _or_ can add rules in the content filter that always allow a domainname? thanks