
Zimbra TLS Handshake Failed? Diagnose Certificates and Ports
Trace Zimbra TLS handshake failures to LDAP certificates, trusted CA chains, or SMTP port settings, then verify the repair without disabling encryption.
Example scenario (illustrative only): After a planned reboot, a fictional mail administrator sees “LDAP server not responding,” and the Zimbra services do not come up. Start by checking whether Zimbra’s LDAP process, slapd, actually started. Then use the first concrete error in the startup logs to choose a fix; do not rebuild or replace the LDAP database based on this message alone.
The message describes a failed connection, not a root cause. It can mean LDAP did not start, the server name cannot resolve, or a network connection to the configured LDAP host failed. Zimbra’s LDAP troubleshooting notes identify these as separate failure classes. The steps below use a single-server example; multi-server deployments must check the configured LDAP master or replica from the affected node.
Log in to the affected server and switch to the Zimbra account. Record the installed version before applying release-specific advice, then query service status:
su - zimbra
zmcontrol -v
zmcontrol status

If LDAP is stopped, continue below. Other services may also stop because they need LDAP to read their configuration. On multi-server deployments, identify which LDAP host this node is configured to use before testing connectivity.

As root, look for the Zimbra LDAP process and check available space. These are read-only checks:
ps auxww | grep '[s]lapd'
df -h /opt/zimbra
df -i /opt/zimbra

No slapd process suggests a startup failure. If one is present, check whether Zimbra recognizes it:
su - zimbra
ldap status
Inspect the Zimbra log around the latest boot. On systemd hosts, check boot errors; older systems may use /var/log/messages or /var/log/syslog.
tail -n 100 /var/log/zimbra.log
journalctl -b -p err --no-pager

Find the first LDAP or slapd error, not later connection failures from dependent services. A full filesystem or inode table can block startup. If full, free only known expendable space under your server policy; never delete LDAP database files or logs blindly.

As the Zimbra user, try the supported LDAP service command once and capture the output:
su - zimbra
ldap start

Afterward, check ldap status and the listening socket. “Done” is not proof if slapd exits; inspect the newest log lines.
Only when the log explicitly reports a permission error while opening a TLS file, Zimbra’s documented remedy for that specific error is to run the permissions repair tool as root, then start the services as the Zimbra user:
# As root
/opt/zimbra/libexec/zmfixperms --extended
# As zimbra
su - zimbra
zmcontrol start
That remedy is tied to the matching TLS permission error. Do not run it as a generic LDAP repair. If the log instead reports a missing certificate, an expired certificate, a TLS initialization failure with a different cause, database errors, or a schema/configuration problem, stop and follow the procedure for that specific error or contact Zimbra support. Do not regenerate certificates or alter LDAP database files without a verified backup and version-appropriate instructions.
This may indicate an orphaned or stale LDAP process, but a process match alone does not prove that it is safe to terminate. Capture the PID and command line, check whether it belongs to the Zimbra installation, and follow a graceful stop procedure for your ZCS release. Avoid kill -9, deleting PID files, or starting another slapd over a live one unless Zimbra support or a release-specific recovery procedure directs you to do so. Zimbra’s LDAP page includes legacy cleanup instructions; verify applicability before using them on a newer release.
Test the hostname and port configured for LDAP from the affected Zimbra node. Zimbra’s documentation notes that hostname resolution matters even when administrators expect a local connection. Use the LDAP hostname from your deployment configuration, and test the port your installation actually uses (commonly 389 for LDAP or 636 for LDAPS):
getent hosts ldap-hostname
ss -lntp | grep -E ':389|:636'

If the host resolves to the wrong address, correct the host/DNS configuration using your normal change process. If the configured LDAP host is remote, check routing and firewall rules between the two Zimbra nodes. Do not open LDAP ports to the public internet; allow only the required trusted systems. A listening local socket proves only that a process has bound a port—it does not prove remote connectivity, a successful TLS handshake, or a healthy LDAP database.
After the root cause is fixed, confirm LDAP’s own status, then check the Zimbra service list and the expected LDAP listener:
su - zimbra
ldap status
zmcontrol status
# As root, if you need to verify the listener
ss -lntp | grep -E ':389|:636'

LDAP should report running, the intended services should return to their normal state, and the listener should match the host and port configured for the deployment. In a multi-server environment, also test resolution and connection from the dependent node. If the error returns, save the first slapd error and recent boot logs before contacting support or applying another repair.
/var/log/zimbra.log for LDAP events; the page is marked as rough-draft course material.
Trace Zimbra TLS handshake failures to LDAP certificates, trusted CA chains, or SMTP port settings, then verify the repair without disabling encryption.

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.