Keep Zimbra’s GAL Current with a Scheduled Sync

For an internal Zimbra Global Address List (GAL), configure the domain’s GAL sync account and its InternalGAL data source, then set a polling interval. For example, to refresh every 12 hours, run zmprov mds galsync@example.com InternalGAL zimbraDataSourcePollingInterval 12h as the Zimbra system user. To update it immediately instead of waiting for the next scheduled poll, run zmgsautil forceSync -a galsync@example.com -n InternalGAL.

This applies when your GAL is built from accounts in the same Zimbra environment and the domain already has a GAL sync account. A shorter interval reduces how long newly added or changed entries may take to appear in the synchronized GAL, but it also causes more frequent directory imports. It does not make every client’s cached address book refresh instantly.

Illustrative Zimbra-style domain settings with Internal GAL selected
Illustrative domain settings: choose the internal GAL mode for a domain whose entries come from Zimbra accounts. Console labels can vary by release.

First confirm which GAL behavior you need

Zimbra distinguishes GAL lookup from GAL synchronization. A live GAL lookup queries the configured directory when a user searches or autocompletes an address. GAL sync uses a special mailbox account and a GAL data source to maintain synchronized contact data for clients and workflows that consume that mailbox. Changing the sync schedule affects the latter; it is not a universal cache timer for every mail client.

For example, suppose an administrator creates lee@example.com at 9:00 a.m. and users need to find it through the synchronized internal GAL. With a 24-hour polling interval, the data source may not import it until its next scheduled poll. A manual force sync can pull an update now. If the entry is absent even in a direct GAL search, check the domain’s GAL mode, account status, and visibility settings as well as the sync job.

Configure the internal GAL polling interval

  1. Check the domain and account. In the Admin Console, open Domains, select the target domain, and inspect Configure GAL. Confirm that the intended GAL mode is internal and note the GAL sync account name and datasource name. Zimbra’s documented example uses InternalGAL; your installation may use a different name.
  2. Set an interval in the Admin Console, if available. The GAL polling interval is the time between syncs to internal LDAP. Choose a value based on how quickly updates must propagate and the size of the directory. The Zimbra Tech Center troubleshooting article gives 12 hours as an example of reducing a one-day interval; it is not a universal required value.
  3. Or change the existing datasource from the command line. Replace the example address and datasource with the values you verified in step 1. Switch to the Zimbra account before running the command:
su - zimbra
zmprov mds galsync@example.com InternalGAL zimbraDataSourcePollingInterval 12h

zmprov mds modifies an existing data source. Do not use it to guess or create a missing GAL account. If your environment uses a different datasource name, substitute that exact name. Duration syntax can be confirmed against the installed release’s command documentation; the Zimbra example uses 12h.

Illustrative GAL settings showing the InternalGAL datasource and a 12-hour polling interval
The polling interval controls the delay between imports into the synchronized GAL; select a value appropriate for the directory’s update needs.

Run a sync now and check the result

After changing the schedule, a force sync is useful when you need to test promptly or cannot wait for the next polling window. It does not replace a valid datasource configuration. Run:

zmgsautil forceSync -a galsync@example.com -n InternalGAL

Use the GAL sync account associated with the domain and the exact datasource name. A successful command invocation only confirms that the request ran; verify the expected contact separately by searching the GAL in the client or workflow that needs it. If it still does not appear, check the mailbox server logs around the sync time and verify that the source account is active and not hidden from the GAL.

Illustrative terminal command setting the InternalGAL polling interval to 12 hours
Example CLI change for an existing datasource: set a 12-hour interval for the domain’s GAL sync account.
Illustrative terminal command requesting an immediate InternalGAL sync
Example force-sync command. Confirm the intended contact appears in a GAL search after the operation.

If the GAL uses Active Directory or another LDAP server

Do not assume that the internal InternalGAL command will configure an external directory. Zimbra’s documented external GAL setup uses a GAL data source with LDAP-specific settings, which can include the sync LDAP URL, search base, filter, and bind credentials. The polling interval still belongs to the data source, but the LDAP endpoint and account must be correct and reachable from the Zimbra host.

Use the Admin Console’s external GAL configuration or the settings documented for your Zimbra release. Keep bind credentials private, use the directory’s least-privileged read account, and prefer an encrypted LDAP connection where the directory and Zimbra configuration support it. The exact attribute names and setup sequence depend on whether the source is Active Directory, generic LDAP, or another Zimbra server; do not copy an example filter without checking the source schema and the entries you intend to publish.

Verify the schedule without over-tuning it

  • Confirm the GAL sync account belongs to the domain you changed and that the datasource name matches exactly.
  • Trigger one force sync, then search for a known, eligible contact in the GAL.
  • Confirm a newly added eligible contact appears after the next scheduled poll; record the time and check the mailbox logs if it does not.
  • Choose the longest interval that still meets your update requirement. A shorter schedule can improve freshness but increases import frequency; if changes must appear immediately, use the supported force-sync workflow or correct the underlying live GAL configuration.

Zimbra’s Tech Center pages document the Admin Console setup, the interval attribute, and the force-sync command, but some wiki articles cover older ZCS releases. Menu names and account-creation details can differ by version. Check the command and configuration reference for your installed release before changing a production domain. The linked Zimbra material is the basis for the commands here: Zimbra GAL Sync Account instructions, Zimbra polling interval example, Zimbra GAL sync troubleshooting, and the Zimbra Configuration Guide.

Leave a Comment

How to