I need to setup a "filter-like" rule on our mail server, which will copy an email regarding some header checking in the "Subject" field. Regarding the documentation from Postfix and the Zimbra's Wiki, I achieved part of what it supposed to be done.
1. zmprov mcf zimbraMtaBlockedExtensionWarnRecipient FALSE (in order to allow postfix to be able to read filter rules for headers)
2. zmlocalconfig -e postfix_header_checks="/opt/zimbra/conf/postfix_header_checks, pcre:/opt/zimbra/conf/fwd_header_checks" (adding new file for reading)
3. added the following matching rules for headers: /^Subject:.*Fwd:*/ REDIRECT firstname.lastname@example.org
This is working like a charm, BUT, it redirects everything without delivering the message. So, anyone here aware is there any other options beside REDIRECT which can be used to deliver the message, and then redirect it to the targeting email?
Or such header checking should be added in spam/antivirus configuration?