Page 1 of 1

Dublicated GAL entries

Posted: Tue Jul 05, 2016 3:21 pm
by tobias.dinse
Hi all,
I installed a new System with Release 8.6.0.GA.1153.UBUNTU14.64 UBUNTU14_64 FOSS edition, Patch 8.6.0_P6.
When I m creating a new E-Mail (over Webgui) and use the "to" Button to select a Address from the GAL I always see the entries twice.

Is it possible to purge / recreate / edit the GAL?

thanks and regards
Tobias

Re: Dublicated GAL entries

Posted: Tue Jul 05, 2016 6:55 pm
by cayaraa
Two things you can look at are the GAL config for that domain and to look for the gal account (just search for galsync under users and "view mail") which stores the actual address book thats globally shared to the domain.

Re: Dublicated GAL entries

Posted: Wed Jul 06, 2016 10:51 am
by DualBoot
Yes you can purge the galsync, but you need to know which folder of the galsync account stores the addresses.
For example you have the following galsync account : galsync@domain.tld
check the data source of this account : zmprov gds galsync@domain.tld
If your galsync is set for example with internal GAL option only, your request should return something like that :

Code: Select all

# name InternalGal
# type gal
objectClass: zimbraDataSource
objectClass: zimbraGalDataSource
zimbraCreateTimestamp: 20120404172153Z
zimbraDataSourceEnabled: TRUE
zimbraDataSourceFolderId: 7
zimbraDataSourceId: 7cbd9de7-5603-4506-be2e-d2e10524c0db
zimbraDataSourceName: InternalGal
zimbraDataSourcePollingInterval: 1h
zimbraDataSourceType: gal
zimbraGalLastFailedSyncTimestamp: 20140102212433Z
zimbraGalLastSuccessfulSyncTimestamp: 20160706091915Z
zimbraGalStatus: enabled
zimbraGalType: zimbra


After that you can purge the data source by using the following command :

Code: Select all

zmmailbox -z -m galsync@domain.tld ef /_InternalGal


And to finish you will need to re-synchronize the data source.

Re: Dublicated GAL entries

Posted: Wed Jul 06, 2016 12:51 pm
by tobias.dinse
I checked the Settings for all my Domains and I always have "Gal Mode Internal" activated.
I got 2 entries with zmprov gds galsync@xxx.com

Code: Select all

# name zimbra
# type gal
objectClass: zimbraDataSource
objectClass: zimbraGalDataSource
zimbraCreateTimestamp: 20160503135736Z
zimbraDataSourceEnabled: TRUE
zimbraDataSourceFolderId: 257
zimbraDataSourceId: 30a02ea3-e0c1-4915-a3f3-xxxxxxxxx
zimbraDataSourceName: zimbra
zimbraDataSourcePollingInterval: 1d
zimbraDataSourceType: gal
zimbraGalLastSuccessfulSyncTimestamp: 20160705160021Z
zimbraGalStatus: enabled
zimbraGalType: zimbra

# name InternalGAL
# type gal
objectClass: zimbraDataSource
objectClass: zimbraGalDataSource
zimbraCreateTimestamp: 20160624130845Z
zimbraDataSourceEnabled: TRUE
zimbraDataSourceFolderId: 508
zimbraDataSourceId: 9fe722b0-03fd-4a4e-9d78-xxxxxxxx
zimbraDataSourceName: InternalGAL
zimbraDataSourcePollingInterval: 1h
zimbraDataSourceType: gal
zimbraGalLastSuccessfulSyncTimestamp: 20160706123658Z
zimbraGalStatus: enabled
zimbraGalType: zimbra


Is there any way to disable "zimbra" Gal over command Line?

Re: Dublicated GAL entries

Posted: Wed Jul 06, 2016 1:01 pm
by cayaraa
If you want to delete the "zimbra" data sources:
zmprov deleteDataSource galsync@xxx.com zimbra

And then to remove the mailbox folder that was created by the data source:
zmmailbox -z -m galsync@xxx.com zimbra deleteFolder _zimbra

You can learn some more about GAL here: https://wiki.zimbra.com/wiki/GAL_Sync_Account


-Aaron