disabler wrote:Hello everybody!
All you need to configure Zimbra, instead of editing postfix config after restarts and upgrades:
Code: Select all
zmprov ms `zmhostname` zimbraMtaMilterDefaultAction accept
zmprov ms `zmhostname` zimbraMtaSmtpdMilters ""
zmprov ms `zmhostname` zimbraMilterServerEnabled TRUE
zmprov ms `zmhostname` zimbraMilterBindPort 11332
zmprov ms `zmhostname` -zimbraServiceEnabled antispam
zmantispamctl stop
Then wait until zimbra populates it's config and check if everything is ok:
Code: Select all
postconf | grep "smtpd_milters\|default_action"
The only drawback I can see to those zmprov changes (after a couple of tests) is that the inbuilt ZCS milter is no longer available. I prefer to leave ZCS as close to it's original state as possible and the following works for me and if anyone has any input on whether this affects the ZCS milter I like to hear it.

Code: Select all
su - zimbra
zmprov ms $(zmhostname) zimbraMilterServerEnabled TRUE
zmprov ms $(zmhostname) zimbraMtaMilterDefaultAction accept
zmprov ms $(zmhostname) zimbraMtaSmtpdMilters: smtpd_milters=inet:localhost:11332
Then just make this change as the zimbra user:
Code: Select all
postconf smtpd_milters=inet:localhost:11332
At least there's no longer any modifications to the config files, I must have missed that in recent versions of postfix the "milter_mail_macros" & "milter_protocol" entries no longer needed to be defined in the config file. Thanks again for post this tip.