
Set Up Zimbra DKIM, SPF, and DMARC Without Breaking Mail
Publish the right DNS records, enable Zimbra DKIM signing, and verify SPF and DMARC alignment before enforcing mail authentication.
Configure external LDAP authentication on the Zimbra domain whose users should sign in with directory credentials. Set the domain’s authentication mechanism to ldap, provide the LDAP URL, and map each Zimbra account to an external bind DN with a template; use a search filter and service bind only when usernames cannot be mapped directly. Zimbra accounts still need to exist in Zimbra’s own directory unless you separately configure account auto-provisioning.
Zimbra validates the submitted password by binding to the external directory. The account must resolve to a valid DN there, and its Zimbra account name must map to the right directory user. Decide how that DN will be found before changing the domain.
| Method | Use it when | What to configure |
|---|---|---|
| Bind DN template | The login name has a predictable relationship to the LDAP DN or user principal name. | zimbraAuthLdapBindDn with variables such as %u or %n. |
| Search filter | The DN cannot be derived from the Zimbra login name. | A search base, filter, and restricted search-bind account plus password. |
| Per-account external DN | A small number of accounts need individual mappings. | zimbraAuthLdapExternalDn on each affected account. |
Zimbra’s current Administrator Guide states that external LDAP and external Active Directory authentication validate passwords against the external directory, while Zimbra LDAP continues to support the rest of Zimbra’s account and service data. This is authentication, not directory synchronization. If you need new users created automatically, treat auto-provisioning as a separate configuration task.

Before configuring Zimbra, collect the external LDAP hostname, port, user attribute or DN pattern, and the search base if you will use a filter. Confirm that the Zimbra mailbox servers can resolve and reach that hostname. Use an encrypted connection: Zimbra documents ldaps:// for SSL/TLS LDAP and requires the directory server’s certificate to be trusted. For LDAPS, a common endpoint format is ldaps://ldap.example.net:636. If your directory requires StartTLS on port 389, verify the supported Zimbra attribute and trust setup for your installed release before enabling it; do not assume that a plain ldap:// connection encrypts passwords.
For a self-signed or private-CA certificate, install the issuing certificate in the trust store used by the Zimbra Java service, following Zimbra’s release-specific LDAP TLS instructions. An untrusted or expired certificate can make authentication fail even when the host and credentials are correct.

You can use the Administration Console’s domain authentication configuration workflow or set the domain attributes with zmprov. In the console, select the domain, open its authentication configuration, choose external LDAP, and enter the server URL and mapping information. Exact wizard labels can vary by Zimbra release; test the configuration in the wizard before applying it broadly.
For a direct bind-DN template, an OpenLDAP-style example is:
su - zimbra
zmprov md example.com \
zimbraAuthMech ldap \
zimbraAuthLdapURL ldaps://ldap.example.net:636 \
zimbraAuthLdapBindDn 'uid=%u,ou=people,dc=example,dc=net'
Replace the domain, hostname, and directory path with values from your environment. Zimbra documents %u as the username without its @ portion, %n as the supplied username including @ when present, %d as the email domain, and %D as that domain formatted as LDAP components. For Active Directory, an account may instead bind with a user principal name such as %u@ad.example.net; choose the format your directory accepts.

If the external DN varies, configure zimbraAuthLdapSearchBase, zimbraAuthLdapSearchFilter, zimbraAuthLdapSearchBindDn, and zimbraAuthLdapSearchBindPassword. The filter should return one user entry, not multiple matches. For example, if the directory’s mail attribute matches the Zimbra address, a filter can use (&(mail=%n)(objectClass=person)). Adapt the object class and attribute to your directory schema. The search-bind account needs only permission to search the required user subtree.
Because the search-bind password is a credential, do not place a real password in a shared script, ticket, or article example. Restrict administrative access and use the Administration Console or your organization’s approved secret-handling process when entering it. Test the filter with a known account in the external directory before applying it to the production domain.
Test with a regular, non-administrator account that already exists in both directories. First validate the settings with the console’s authentication test if available, then sign in to the Zimbra web client with the test account and its external directory password. Also test a known invalid password; it should fail. Confirm that the Zimbra account address maps to the expected LDAP user and that unrelated domains still use their existing authentication method.
Review zimbraAuthFallbackToLocal before rollout. When enabled, Zimbra can fall back to its local authentication if external authentication returns an error. That behavior may help preserve access during an LDAP outage, but it can also allow a locally stored Zimbra password to authenticate. Decide whether that is acceptable for your security policy and verify the attribute’s current value for the domain rather than assuming its default.

zimbraAuthMech is set to ldap on the intended Zimbra domain.For version-specific details, see the Zimbra Collaboration Administrator Guide, Zimbra’s external Active Directory authentication procedure, its LDAP authentication reference, and the maintained external LDAP authentication notes.

Publish the right DNS records, enable Zimbra DKIM signing, and verify SPF and DMARC alignment before enforcing mail authentication.

Configure every Zimbra Proxy host to redirect webmail traffic to HTTPS, restart Nginx, and verify the redirect and certificate safely.

Set the GAL polling interval for a Zimbra domain, run an immediate sync, and verify updates without confusing directory lookup with address-book synchronization.

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

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.