Results 1 to 7 of 7

Thread: How to remove aliases in GAL?

  1. #1
    Join Date
    May 2006
    Posts
    12
    Rep Power
    9

    Default How to remove aliases in GAL?

    I have users who has a couple of aliases and all of them show in the GAL. Is there a way to hide the aliases? This will make name checks much smoother..

    I'm running 4.0.

    Thanks

    Charles

  2. #2
    Join Date
    Feb 2006
    Posts
    47
    Rep Power
    9

    Default request for zimbraHideInGal attribute for aliases

    This is also an issue for me with several clients who have multiple domains - each user has one or more email addresses (aliases) for each domain; eg

    username@domain.com
    first.last@domain.com
    username@domain.com.au
    first.last@domain.com.au

    However, all these addresses show up in the GAL.

    It would be great to be able to set a HideinGal attribute per alias if that was possible - are aliases stored in some location other than with the user account?

    Or perhaps a per-account attribute called zimbraMailAliasHideInGal which would be set to the alias; eg:

    zimbraMailAlias: username@domain.com.au
    zimbraMailAliasHideInGal: username@domain.com.au

    Or perhaps a per-account attribute to hide all aliases, such as zimbraHideAliasesInGal.

    Rgds - Angus

  3. #3
    Join Date
    Aug 2005
    Posts
    228
    Rep Power
    10

    Default

    Please file a bug on this and vote on it, so we can keep track of interest.

    To fix this for clients using the SOAP API (web client, Outlook) probably isn't that hard, but to fix it for LDAP clients making queries directly might be tricky without some schema/layout changes.

    There is a painful workaround that should work for both SOAP and LDAP, and a less painful one that would only work on SOAP, but would hide all aliases for accounts in a domain.

    The more painful workaround would be to remove all the aliases for the account, create a distribution list with the same name as one of the aliases, add the rest of the aliases to the distribution list, add the original account as a member, and finally mark the DL as hidden in the GAL. Fairly painful to manage, and also means you can't login to the account using any of those aliases as the username anymore.

    The other workaround (SOAP only) is to change the zimbraGalLdapAttrMap setting that maps email addresses from the GAL into email address in a contact. The rule as shipped is:

    Code:
    zimbraMailDeliveryAddress,zimbraMailAlias,mail=email,email2,email3,email4,email5,email6
    Which looks for LDAP attrs on the left-hand side, and copies them to contact attrs on the right. If you don't want zimbraMailAliases showing up, you'd have to change it to something like:

    Code:
    zimbraMailDeliveryAddress,mail=email
    The reason you have to remove all the mail2-6 attrs on the left is for every aliases, we also add a "mail" attr, so after grabbing the primary address from zimbraMailDeliveryAddress (and setting email), we would then set if any "mail" attrs are set, and start copying those to email2, email3. If you remove "mail" altogether, then distribution lists won't show up in the GAL, because they don't have a zimbraMailDeliveryAddress, just zimbraMailAlias entries.

    hum, we probably could also fix in the web client only, and have it not display GAL entries multiple times for the same entry, assuming that info makes it all the way back to the client.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  4. #4
    Join Date
    May 2006
    Posts
    12
    Rep Power
    9

    Default

    Quote Originally Posted by schemers
    Please file a bug on this and vote on it, so we can keep track of interest.

    To fix this for clients using the SOAP API (web client, Outlook) probably isn't that hard, but to fix it for LDAP clients making queries directly might be tricky without some schema/layout changes.

    There is a painful workaround that should work for both SOAP and LDAP, and a less painful one that would only work on SOAP, but would hide all aliases for accounts in a domain.

    The more painful workaround would be to remove all the aliases for the account, create a distribution list with the same name as one of the aliases, add the rest of the aliases to the distribution list, add the original account as a member, and finally mark the DL as hidden in the GAL. Fairly painful to manage, and also means you can't login to the account using any of those aliases as the username anymore.

    The other workaround (SOAP only) is to change the zimbraGalLdapAttrMap setting that maps email addresses from the GAL into email address in a contact. The rule as shipped is:

    Code:
    zimbraMailDeliveryAddress,zimbraMailAlias,mail=email,email2,email3,email4,email5,email6
    Which looks for LDAP attrs on the left-hand side, and copies them to contact attrs on the right. If you don't want zimbraMailAliases showing up, you'd have to change it to something like:

    Code:
    zimbraMailDeliveryAddress,mail=email
    The reason you have to remove all the mail2-6 attrs on the left is for every aliases, we also add a "mail" attr, so after grabbing the primary address from zimbraMailDeliveryAddress (and setting email), we would then set if any "mail" attrs are set, and start copying those to email2, email3. If you remove "mail" altogether, then distribution lists won't show up in the GAL, because they don't have a zimbraMailDeliveryAddress, just zimbraMailAlias entries.

    hum, we probably could also fix in the web client only, and have it not display GAL entries multiple times for the same entry, assuming that info makes it all the way back to the client.

    I created a entry on bugs.

    Bugzilla Bug 10657

    Charles

  5. #5
    Join Date
    Mar 2006
    Location
    Beaucaire, France
    Posts
    2,322
    Rep Power
    13

    Default

    This bug is marked as a duplicate of 10456, which is marked fixed.

    However, with 4.5.2 (and 4.5.2 ZCO) we still have the problem in Outlook (tested on two different servers/setups).

  6. #6
    Join Date
    Mar 2006
    Location
    Beaucaire, France
    Posts
    2,322
    Rep Power
    13

    Default

    Not working either with 4.5.2 and 4.5.3 ZCO.
    Opened a bug here : http://bugzilla.zimbra.com/show_bug.cgi?id=15200

  7. #7
    Join Date
    Jun 2007
    Location
    Phoenix, AZ USA
    Posts
    13
    Rep Power
    8

    Default Kills Distribution Groups

    I've successfully used the commands mentioned above to remove the aliases from the GAL for all our users in all our domains.

    It has an unwanted side effect though. It also removes the address for all distribution groups in the GAL search in the Web Interface. The GAL search shows the distribution list's display name but no address.

Similar Threads

  1. Remove Account names from GAL
    By g8se in forum Administrators
    Replies: 6
    Last Post: 05-25-2009, 02:38 AM
  2. Hide aliases in GAL
    By Dirk in forum Administrators
    Replies: 5
    Last Post: 11-15-2007, 03:25 PM
  3. Outlook connector and GAL Aliases
    By didster in forum Zimbra Connector for Outlook
    Replies: 5
    Last Post: 11-06-2007, 10:34 AM
  4. Bug Question all aliases GAL
    By fred3us in forum Administrators
    Replies: 1
    Last Post: 03-12-2007, 10:39 AM
  5. Bulk Remove domain aliases
    By kechols in forum Administrators
    Replies: 7
    Last Post: 09-05-2006, 09:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •