This implementation of the global address book makes it possible to simplify the import of new data into it, but by default it works within only one domain. Large companies often use separate mail domains for different divisions or subsidiaries, and often there is a need to have a common global address book, which would contain the mail addresses and user data of several or even all company domains.
In order to combine the contact lists of galsync accounts from different mail domains, you need to configure their synchronization. Using the msk.company.ru and spb.company.ru domains as examples, we’ll configure a common address book for the company’s branches in Moscow and St. Petersburg.
By default, the galsync account in Zimbra OSE domains has a suffix that is a random set of numbers and letters. This can make it difficult for us to work with her in the future, and so first we will delete the account firstname.lastname@example.org then create a new galsync @ msk company.ru using the following commands:
zmgsautil deleteAccount -a email@example.com
zmgsautil createAccount -a firstname.lastname@example.org -n GAL –domain msk.company.ru -t zimbra -s mail.company.ru -f GAL
We draw your attention to the fact that the galsync account should never be deleted in the same way as a regular account. This will cause Zimbra OSE to constantly report an error when trying to access a domain that was left without a galsync account.
After that, add a new SPB data source to the galsync account of the Moscow domain, the contacts from which will be automatically added to the _SPB contacts folder. This is done using the command zmgsautil addDataSource -a email@example.com -n SPB –domain msk.company.ru -t ldap -f _SPB -p 1d.
As the source of information, we specify the domain spb.company.ru and set a filter to search for contacts: zmprov mds firstname.lastname@example.org SPB zimbraGalSyncLdapBindDn $ zimbra_ldap_userdn zimbraGalSyncLdapBindPassword $ zimbra_ldap_password zimbraGalSyncLdapFilter ‘(| (& (mail = *) () = ZIM () = TRIM () =)) = zimbraDistributionList) (! (zimbraHideInGAL = TRUE)))) ‘zimbraGalSyncLdapSearchBase dc = spb, dc = company, dc = ru zimbraGalSyncLdapURL ldap: //192.168.0.15: 389.
Now it remains only to turn on the contact source that we added zmprov mds email@example.com SPB zimbraDataSourceEnabled TRUE and force the first synchronization using the command zmgsautil forceSync -a firstname.lastname@example.org -n SPB.
To make sure that synchronizing contacts between global address books works, you can check the contents of the _SPB folder that we just created zmmailbox -z -m email@example.com gaf. If everything is in order, it remains only to enter the command zmprov md msk.company.ru zimbraGALMode both and check how autocomplete works when dialing contacts from the St. Petersburg domain.
In the event that you need users of the spb.company.ru domain to also be able to see users of the msk.company.ru domain, you will need to do the same, but swap the domains:
- zmgsautil addDataSource -a firstname.lastname@example.org -n MSK –domain spb.company.ru -t ldap -f _MSK -p1d
- zmprov mds email@example.com SPB zimbraGalSyncLdapBindDn $ zimbra_ldap_userdn zimbraGalSyncLdapBindPassword $ zimbra_ldap_password zimbraGalSyncLdapFilter ‘(| (& (mail = *) () = ZIM () = TRIM () =)) = zimbraDistributionList) (! (zimbraHideInGAL = TRUE)))) ‘zimbraGalSyncLdapSearchBase dc = msk, dc = company, dc = ru zimbraGalSyncLdapURL ldap: //192.168.0.15: 389
- zmprov mds firstname.lastname@example.org MSK zimbraDataSourceEnabled TRUE
- zmgsautil forceSync -a email@example.com -n MSKzmmailbox -z -m firstname.lastname@example.org gaf
- zmprov md spb.company.ru zimbraGALMode both
The number of data sources in your galsync account is unlimited.
You can add new contact sources for your galsync account in the administration console. However, in order to do this, you still have to work on the command line anyway. To, for example, add contacts from a branch in Kaluga to galsync of a Moscow domain, you need to use the command zmgsautil addDataSource -a email@example.com -n KLG –domain msk.company.ru -t ldap -f _KLG -p 1d add a KLG data source and a folder for them called _KLG.
After that, in the admin console, go to Settings – Domains – configure GAL, in the opened global address book configuration wizard, select the KLG source and enter all the necessary parameters into it, similar to those used in previous examples.
You can also connect Active Directory as an external contact source. This is done in exactly the same way as in the case of regular LDAP: an AD data source is created – zmgsautil addDataSource -a firstname.lastname@example.org -n AD –domain msk.company.ru -t ldap -f _AD -p 1d, and then the search filter and data for autocomplete are indicated in the administration console.
For all questions related to the Zextras Suite, you can contact the representative of the company “Zextras” Ekaterina Triandafilidi by e-mail email@example.com