Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-22-2006, 05:46 PM
Member
 
Posts: 12
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
Reply With Quote
  #2 (permalink)  
Old 09-06-2006, 08:51 PM
Active Member
 
Posts: 47
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
Reply With Quote
  #3 (permalink)  
Old 09-07-2006, 10:31 AM
Zimbra Employee
 
Posts: 228
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!
Reply With Quote
  #4 (permalink)  
Old 09-13-2006, 12:26 PM
Member
 
Posts: 12
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
Reply With Quote
  #5 (permalink)  
Old 03-06-2007, 06:16 AM
Moderator
 
Posts: 2,207
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).
Reply With Quote
  #6 (permalink)  
Old 03-07-2007, 05:49 AM
Moderator
 
Posts: 2,207
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
Reply With Quote
  #7 (permalink)  
Old 09-07-2007, 12:04 PM
Member
 
Posts: 13
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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.