Can you hide aliases from appearing in the GAL?

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
KenCook
Posts: 18
Joined: Sat Sep 13, 2014 3:12 am

Can you hide aliases from appearing in the GAL?

Post by KenCook »

Is it possible to hide email aliases in the GAL? The only option I can find is to hide the main account.
One example of why this would be useful:
Our email addresses are created using first initial and last name (not the best policy, but it's ours).

User gets married, so last name changes.

User gets new email address with old address aliased to the account so they do not miss any mail during the name change.

It does not encourage everyone to use the new address when they continue to see the old address in the GAL.


Version 8.0.4_GA_5737.NETWORK May 24, 2013
15337Raunaq
Advanced member
Advanced member
Posts: 157
Joined: Sat Sep 13, 2014 2:59 am

Can you hide aliases from appearing in the GAL?

Post by 15337Raunaq »

If you do not want aliases to appear in the GAL, you can disable this option. Modify the ZmCustomizeMsi.js file before installation and select the

--galsync-disablealiases 1 option.

When this is disabled, users cannot search for aliases when addressing mail.

If profile aliases are being displayed by Outlook, and you have disabled this feature, the GAL must be reset.

*

For Outlook 2007, go to Sync Global Address List>Reset Global Address List.

*

For Outlook 2010, go to the Zimbra ribbon>Sync Global Address List>Reset Global Address List.
Also check

http://kb.vmware.com/selfservice/micros ... Id=2039127
15337Raunaq
Advanced member
Advanced member
Posts: 157
Joined: Sat Sep 13, 2014 2:59 am

Can you hide aliases from appearing in the GAL?

Post by 15337Raunaq »

"hide account alias in gal search for ZWC"
Bug 10456 – hide account alias in gal search for ZWC
"All aliases appear when doing GAL auto-complete when composing new message"
Bug 23298 – All aliases appear when doing GAL auto-complete when composing new message
KenCook
Posts: 18
Joined: Sat Sep 13, 2014 3:12 am

Can you hide aliases from appearing in the GAL?

Post by KenCook »

I should have specified that we do not use Outlook but they do appear in the GAL in the web client. I have not tested this in the Zimbra Desktop client but would assume that it's the same result. What we really want is for them not to appear in the GAL regardless of the email client or application.
KenCook
Posts: 18
Joined: Sat Sep 13, 2014 3:12 am

Can you hide aliases from appearing in the GAL?

Post by KenCook »

[quote user="15337Raunaq"]"hide account alias in gal search for ZWC"
Bug 10456 – hide account alias in gal search for ZWC
"All aliases appear when doing GAL auto-complete when composing new message"
Bug 23298 – All aliases appear when doing GAL auto-complete when composing new message[/QUOTE]
Must have been typing at the same time :)
Both of those bugs show a status of FIXED. Apparently it has returned in version 8x.
7531prashant
Outstanding Member
Outstanding Member
Posts: 343
Joined: Fri Sep 12, 2014 10:39 pm

Can you hide aliases from appearing in the GAL?

Post by 7531prashant »

Please file bug @ https://bugzilla.zimbra.com with detailed steps, zimbra version, configuration details.
KenCook
Posts: 18
Joined: Sat Sep 13, 2014 3:12 am

Can you hide aliases from appearing in the GAL?

Post by KenCook »

chauvetp
Outstanding Member
Outstanding Member
Posts: 350
Joined: Fri Sep 12, 2014 11:28 pm

Can you hide aliases from appearing in the GAL?

Post by chauvetp »

As a work around, you could create a distribution list for each person in place of an alias. The distribution lists can be set, on a per DL basis, to "Hide in GAL". In CLI:
zmprov cdl AliasName@domain.com

zmprov adlm AliasName@domain.com RealAccount@domain.com

zmprov mdl AliasName@domain.com zimbraHideInGal TRUE
We've done this for some non-public aliases.
KenCook
Posts: 18
Joined: Sat Sep 13, 2014 3:12 am

Can you hide aliases from appearing in the GAL?

Post by KenCook »

[quote user="chauvetp"]As a work around, you could create a distribution list for each person in place of an alias. The distribution lists can be set, on a per DL basis, to "Hide in GAL". In CLI:
zmprov cdl AliasName@domain.com

zmprov adlm AliasName@domain.com RealAccount@domain.com

zmprov mdl AliasName@domain.com zimbraHideInGal TRUE
We've done this for some non-public aliases.[/QUOTE]
Excellent idea, hadn't thought of that! Thanks for the tip. Hopefully in the future we will have an option of whether or not to show aliases in the GAL.
mszusdziara
Posts: 3
Joined: Tue Nov 03, 2015 1:56 am

Can you hide aliases from appearing in the GAL?

Post by mszusdziara »

Hi all,
here is another neat trick that i got pointed to by the article at https://wiki.zimbra.com/wiki/GAL_Attribute_Mapping :

# add new mapping:
/opt/zimbra/bin/zmprov mcf +zimbraGalLdapAttrMap zimbraPrefFromAddress,zimbraMailDeliveryAddress,zimbraMailAlias,mail=email,email2,email3,email4,email5,email6,email7,email8,email9,email10,email11,email12,email13,email14,email15,email16

# remove default mapping (can be optained by /opt/zimbra/bin/zmprov gacf|grep zimbraGalLdapAttr)
/opt/zimbra/bin/zmprov mcf -zimbraGalLdapAttrMap zimbraMailDeliveryAddress,zimbraMailAlias,mail=email,email2,email3,email4,email5,email6,email7,email8,email9,email10,email11,email12,email13,email14,email15,email16

What that does is moving the zimbraPrefFromAddress at the top position in the GAL map so that would show up in GAL rather than the <login>@<domain> address. However you can modify the commands according to your needs, for example modify the first command to:
/opt/zimbra/bin/zmprov mcf +zimbraGalLdapAttrMap zimbraMailDeliveryAddress,mail=email,email2,email3,email4,email5,email6,email7,email8,email9,email10,email11,email12,email13,email14,email15,email16
in order to remove Aliases from GAL altogether. See article mentioned above on how this works.
For verification /opt/zimbra/bin/zmprov gacf|grep zimbraGalLdapAttr can be used.
NB: Keep the + and -.

HTH,
Matthias
Post Reply