Results 1 to 10 of 10

Thread: [SOLVED] LDAP Attribute / Users with Forwarding enabled

  1. #1
    Join Date
    Jul 2008
    Posts
    11
    Rep Power
    7

    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

  2. #2
    Join Date
    Feb 2007
    Location
    Portland, OR
    Posts
    1,147
    Rep Power
    10

    Default

    zimbraPrefMailForwardingAddress is the attribute name.

  3. #3
    Join Date
    Feb 2007
    Location
    Portland, OR
    Posts
    1,147
    Rep Power
    10

    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"

  4. #4
    Join Date
    Oct 2007
    Location
    Columbus, OH
    Posts
    70
    Rep Power
    8

    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\*)"

  5. #5
    Join Date
    Jul 2008
    Posts
    11
    Rep Power
    7

    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.

  6. #6
    Join Date
    Oct 2007
    Location
    Columbus, OH
    Posts
    70
    Rep Power
    8

    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.

  7. #7
    Join Date
    Jul 2008
    Posts
    11
    Rep Power
    7

    Default

    alexkelly,
    Thanks for the excellent idea.

    I assume you've also looked for a list of attributes. Does one not exist?

  8. #8
    Join Date
    Feb 2007
    Location
    Portland, OR
    Posts
    1,147
    Rep Power
    10

    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.

  9. #9
    Join Date
    Jun 2009
    Location
    Ypsilanti, MI
    Posts
    9
    Rep Power
    6

    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.

  10. #10
    Join Date
    Feb 2007
    Location
    Portland, OR
    Posts
    1,147
    Rep Power
    10

    Default

    Cool thanks for the tip

Similar Threads

  1. LDAP Cannot bind on migration to new server
    By neekster in forum Migration
    Replies: 23
    Last Post: 03-09-2009, 03:08 AM
  2. DNS Questions and Trouble Installing
    By smurraysb in forum Installation
    Replies: 22
    Last Post: 03-14-2008, 04:27 PM
  3. [SOLVED] Can't receive messages from Gmail
    By agfeller in forum Administrators
    Replies: 4
    Last Post: 02-04-2008, 11:16 AM
  4. Replies: 13
    Last Post: 05-15-2007, 07:41 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
  •