Hi fellow Zimbra admins,
I noticed that the MTA service on my ZCS is down after every night.
In the /var/log/zimbra.log I see:
Code:
Apr 26 23:18:22 nl01 postfix/smtpd[20115]: table hash:/etc/aliases(0,lock|fold_fix) has changed -- restarting
Apr 26 23:18:22 nl01 postfix/postfix-script[20247]: refreshing the Postfix mail system
Apr 26 23:18:22 nl01 postfix/master[30962]: reload -- version 2.7.2, configuration /opt/zimbra/postfix-2.7.2.2z/conf
Apr 26 23:18:23 nl01 saslauthd[30970]: server_exit : master exited: 30970
Apr 26 23:18:24 nl01 saslauthd[20344]: set_auth_mech : failed to initialize mechanism zimbra
... and after that the last message about the auth_mech is repeated every 30 seconds.
Seems that saslauthd failed to start on MTA restart.
Also when I try zmmtactl restart, I get the same error: "failed to initialize mechanism zimbra".
I investigated further and found that I'm missing URL in the saslauthd.conf:
Code:
$ cat saslauthd.conf
zimbra_url:
zimbra_cert_file: /opt/zimbra/conf/smtpd.crt
zimbra_cert_check: off
And the file modification time is at 23:18, so it was rewritten at the time of the automatic MTA restart.
But in saslauthd.conf.in, there is a line (among others):
Code:
zimbra_url: %%getAllMtaAuthURLs%%
so I suppose that this URL should be filled in automatically. And it really is, but only after I do a full restart of Zimbra with "zmcontrol restart", restart of MTA is not sufficient.
Please advise why my saslauthd.conf is rewritten without the URL or how could I debug this issue further.
Using ZCS Release 7.1.0_GA_3140.UBUNTU10_64 UBUNTU10_64 FOSS edition,
some variables I checked but didn't find any discrepancies:
Code:
$ zmprov getServer nl01.coders.sk | grep Auth
zimbraMtaAuthEnabled: TRUE
zimbraMtaAuthHost: nl01.coders.sk
zimbraMtaAuthTarget: TRUE
zimbraMtaAuthURL: https://nl01.coders.sk:443/service/soap/
zimbraMtaSaslAuthEnable: yes
zimbraMtaTlsAuthOnly: TRUE
$ zmprov getServer nl01.coders.sk | grep Mode
zimbraBackupMode: Standard
zimbraIPMode: ipv4
zimbraMailMode: redirect
zimbraMailReferMode: wronghost
zimbraMailSSLClientCertMode: Disabled
zimbraOpenidConsumerStatelessModeEnabled: TRUE
zimbraReverseProxyImapStartTlsMode: only
zimbraReverseProxyPop3StartTlsMode: only
Any help would be appreciated. Thank you very much.
--
Michal Belica - IT consultant