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

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 11-24-2008, 01:51 PM
Member
 
Posts: 11
Default [SOLVED] LDAP Attribute / Users with Forwarding enabled

Hello all,
One of our users belonging to the All@ group has enabled mail forwarding. Senders receive a non-delivery message when sending for an address that someone setup as a forwarding address.

The address doesn't provide any detail for who the user is but we need to ensure they are receiving mail.

I was unable to find any way within the zimbra administration to search by forwarding address.

I know I can use "zmprov sa" to run an LDAP query, but I can not find a list of LDAP attributes, specifically the Forwarding address attribute.

Thanks,
Tony
Reply With Quote
  #2 (permalink)  
Old 11-24-2008, 04:07 PM
Moderator
 
Posts: 1,147
Default

zimbraPrefMailForwardingAddress is the attribute name.
Reply With Quote
  #3 (permalink)  
Old 11-24-2008, 04:17 PM
Moderator
 
Posts: 1,147
Default

This gives some error about not being able to convert * to ASCII...but it works:
Code:
zmprov sa -v zimbraPrefMailForwardingAddress=* | grep -e "uid" -e "zimbraPrefMailForwardingAddress"
Reply With Quote
  #4 (permalink)  
Old 11-24-2008, 06:58 PM
Trained Alumni
 
Posts: 70
Default

As mentioned, the zimbraPrefMailForwardingAddress is where the forwards live. However, It is also possible to set up a mail filter that forwards to an external account. Those live in the zimbraMailSieveScript attribute, but they are part of a script rather than a single key=value, so they are harder to deal with. But you can figure out who has those set by doing a query like:
zmprov sa "(zimbraMailSieveScript=\*redirect\*)"
Reply With Quote
  #5 (permalink)  
Old 11-25-2008, 09:11 AM
Member
 
Posts: 11
Default

Thank you both.

ArcaneMagus - That query worked perfectly.

Is there a listing of the LDAP Attributes that I've missed? where are YOU finding the answers to my questions? Thanks.
Reply With Quote
  #6 (permalink)  
Old 11-25-2008, 09:15 AM
Trained Alumni
 
Posts: 70
Default

I get the information from doing
Code:
zmprov ga account@domain.com
Then I make the changes that users can make from the client, redo the zmprov command above and figure out what changed.
Reply With Quote
  #7 (permalink)  
Old 11-25-2008, 09:20 AM
Member
 
Posts: 11
Default

alexkelly,
Thanks for the excellent idea.

I assume you've also looked for a list of attributes. Does one not exist?
Reply With Quote
  #8 (permalink)  
Old 11-25-2008, 03:02 PM
Moderator
 
Posts: 1,147
Default

There is no list of LDAP attributes for an account since it changes depending on what has been done on that account or what is enabled. For instance the zimbraPasswordMustChange attribute is only created in LDAP when you click that box in the admin UI...before then it doesn't exist.

I personally use an LDAP browser to actually view the LDAP on the itself...you will need the root LDAP password as well as modifying your Zimbra LDAP configuration to even allow connections if you wanted to do this, however unless you have a specific need to do this it is not recommended.

Code:
zmprov ga account@domain.tld
actually gives you all options stored for that user, about half of which don't reside in the LDAP directory, so if all you are doing is reading account attributes the zmprov command is probably a better program to use.
Reply With Quote
  #9 (permalink)  
Old 05-07-2010, 09:27 AM
Junior Member
 
Posts: 9
Default

FYI, if you're scripting this somehow and need to get results without the error ArcaneMagus talked about earlier, you can use:

Code:
zmprov sa "(zimbraPrefMailForwardingAddress=*@*)"
HTH.
Reply With Quote
  #10 (permalink)  
Old 05-07-2010, 11:50 AM
Moderator
 
Posts: 1,147
Default

Cool thanks for the tip
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.