Hello Shashikant!
Since this post is not relevant to ZeXtras Suite or any ZeXtras Product, I moved it to the "Zimbra HowTo" section.
Thus said, editing the "postfix" binary (or any binary in general) is a big NO-NO for many reasons.
While what you ask can be done in different ways, my colleagues and I prefer to keep customization separated from the default files, so this is what we usually do:
- Create a new file called "custom_header_checks" in /opt/zimbra/conf/
- Add the following line to the file:
- Add the new file to the list of header checks:
*check current setting*
Code:
zimbra@mail:~$ zmlocalconfig | grep -i header_checks
postfix_header_checks = pcre:/opt/zimbra/conf/postfix_header_checks
*change the current setting*
Code:
zmlocalconfig -e postfix_header_checks='pcre:/opt/zimbra/conf/postfix_header_checks, regexp:/opt/zimbra/conf/custom_header_checks'
zmprov mcf zimbraMtaBlockedExtensionWarnRecipient FALSE
- Restart the MTA
Have a nice day,
Cine
the ZeXtras Team
Bookmarks