
Get Zimbra LDAP Back Online After a Failed Boot
Diagnose a Zimbra LDAP boot failure by checking slapd, startup logs, disk space, TLS permissions, and host connectivity before restarting dependent services.
When Zimbra reports “Unable to start TLS: SSL handshake failed,” first identify whether the failed connection is to LDAP, an SMTP relay, or a client-facing mail service. Then test that exact hostname and port and repair its certificate chain, trust configuration, or TLS mode; disabling TLS globally is not a safe first fix.
The message can describe internal LDAP, outbound SMTP delivery, or a client connecting to IMAP or submission. Fix the endpoint actually failing.
On the affected node, check the installed release and the services as the Zimbra account:
su - zimbra
zmcontrol -v
zmcontrol status

Check the time-correlated logs without copying passwords or private keys into a support ticket:
grep -iE 'starttls|handshake|certificate|tls' /var/log/zimbra.log | tail -n 60
tail -n 60 /opt/zimbra/log/mailbox.log
The mailbox log helps when Java mailbox services report certificate errors. If the relevant entry names ldap master or dict_ldap_connect, investigate internal LDAP first. If it names a relay hostname, a queue ID, or postfix/smtp, investigate outbound SMTP instead.

Use the fully qualified DNS hostname Zimbra actually connects to. For LDAP STARTTLS on port 389, run this on the failing node, replacing the example name:
openssl s_client -connect ldap.example.com:389 -starttls ldap \
-servername ldap.example.com -verify_hostname ldap.example.com \
-verify_return_error -showcerts </dev/null
For SMTP submission using STARTTLS, the corresponding test is:
openssl s_client -connect relay.example.com:587 -starttls smtp \
-servername relay.example.com -verify_hostname relay.example.com \
-verify_return_error </dev/null
Port 25 also commonly uses SMTP STARTTLS. Port 465 uses TLS from the beginning, so omit -starttls smtp when testing 465. Mixing STARTTLS and implicit TLS can fail even with a valid certificate.
Look for a completed TLS session, a negotiated protocol and cipher, and certificate verification success. An unable to get local issuer certificate error suggests an absent intermediate certificate or a missing trusted CA. An expired certificate or hostname mismatch calls for a different correction. Do not rely on a displayed “Verify return code: 0” alone if you did not explicitly request hostname checking and strict verification. Also test using Zimbra's trust environment when its result differs from the system OpenSSL client.

These fixes are alternatives, not a sequence to run blindly. Choose the narrowest one that matches your test and logs:
| Evidence | Preferred correction | Trade-off |
|---|---|---|
| Expired, mismatched, or incomplete server certificate | Replace or redeploy the correct certificate and CA chain | Requires a controlled service restart |
| LDAP certificate is valid but a Zimbra node does not trust its issuing CA | Deploy the established CA to the affected node | Trust must be consistent across nodes |
| Handshake fails only on a particular SMTP port or protocol | Correct the relay port, TLS mode, or supported protocol policy | Compatibility changes can weaken encryption |
Review what Zimbra currently deploys:
/opt/zimbra/bin/zmcertmgr viewdeployedcrt
/opt/zimbra/bin/zmcertmgr checkcrtexpiration all

For a commercial certificate, obtain the new server certificate and the current intermediate/root chain from the issuing CA. Confirm the requested hostname appears in the certificate's subject alternative names (SANs). With the existing matching private key securely retained at /opt/zimbra/ssl/zimbra/commercial/commercial.key, first verify the staged files:
/opt/zimbra/bin/zmcertmgr verifycrt comm \
/opt/zimbra/ssl/zimbra/commercial/commercial.key \
/tmp/commercial.crt /tmp/ca_chain.crt
Only after verification succeeds, schedule an appropriate maintenance window and deploy:
/opt/zimbra/bin/zmcertmgr deploycrt comm \
/tmp/commercial.crt /tmp/ca_chain.crt
zmcontrol restart
The chain file must contain the actual issuers for the leaf certificate, in the order expected by Zimbra's certificate tool. Do not paste arbitrary root certificates together or overwrite a private key to force a match. On Zimbra 8.7 and later, zmcertmgr runs as the zimbra user; older releases differ. Zimbra's certificate administration documentation, last updated January 13, 2023, marks these procedures as verified for ZCS 8.8, 9.0, and 10.0. For a different release, confirm options with zmcertmgr -help first.
In a multi-server deployment using a private Zimbra CA, a valid LDAP certificate can still fail if another node trusts a different CA. Prefer distributing the existing LDAP CA through Zimbra's supported deployment process rather than creating an unrelated new CA on every server. On the affected node, an administrator can use the documented zmcertmgr deployca -localonly procedure after the correct CA files are present. Regenerating the CA without a migration plan can break trust throughout the installation.
Check the TLS requirements without changing them:
zmlocalconfig ldap_starttls_supported
zmlocalconfig ldap_starttls_required
zmlocalconfig zimbra_require_interprocess_security
Zimbra's STARTTLS settings reference recommends keeping LDAP STARTTLS and interprocess security enabled. Disabling them may restore some connectivity but removes security protections and can expose credentials or traffic; do not use it as a routine repair.
If LDAP tests pass but outbound mail is deferred, inspect the exact relay target and Postfix TLS policy before adjusting it:
zmprov gs "$(zmhostname)" zimbraMtaRelayHost
/opt/zimbra/common/sbin/postconf -n | grep -E '^(smtp|smtpd)_tls_'
Check the relay TLS mode, version, and cipher before changing restrictions. A setting of smtp_tls_security_level=may allows opportunistic encryption and can permit plaintext fallback, whereas encrypt requires TLS but does not by itself verify the server's identity. The Postfix TLS guide documents these important differences. Do not relax a mandatory-encryption or certificate-verification policy merely to clear the queue; instead fix the peer connection or use a documented per-destination policy where appropriate.
Rerun the same openssl s_client command against the same host and port from the affected node. Confirm the hostname, trust chain, negotiated protocol, and cipher. Check zmcontrol status, the log, and a real LDAP lookup or test message through the failing relay. Confirm the queue entry is delivered rather than only accepted locally.
If the handshake still fails, preserve the exact error, peer address, port, certificate subject/issuer, and Zimbra/Postfix versions before escalating. Avoid broad TLS changes until you know whether the remaining problem is a trust store, network middlebox, incompatible peer, or service-specific configuration. The OpenSSL s_client reference explains the flags used for these checks.

Diagnose a Zimbra LDAP boot failure by checking slapd, startup logs, disk space, TLS permissions, and host connectivity before restarting dependent services.

Place local rules in Zimbra’s supported directory, validate them before reload, then test their score on a controlled message.

Choose the right Zimbra export: save mailbox messages as EML in a ZIP archive, or create a PST from a fully synced Outlook profile.

The hook lands in two seconds flat. Comments are full of "Who made this?" Then someone asks, "Can we just do that?" Most brands go one of two ways here, both wrong.

Check the right in-place, rolling, or NG migration path, prepare backups and licensing, and verify each Zimbra server after upgrading to Daffodil 10.1.

Diagnose high ClamAV or FreshClam CPU on Zimbra, compare safe remedies, adjust scanning load when justified, and verify antivirus and mail delivery.

Use Zimbra’s proxy logs and control commands to identify common NGINX startup failures, repair the cause, and verify webmail and client routing.

Tell a Zimbra HTTP 404 apart from a certificate failure, test ports 7071 and 9071, and repair only the layer that is failing.

Replace an expired Zimbra self-signed certificate, preserve the CA when appropriate, and verify each service presents the renewed certificate.