Results 1 to 4 of 4

Thread: How to find out who has a forward setup?

  1. #1
    Join Date
    Oct 2008
    Location
    San Diego
    Posts
    48
    Rep Power
    7

    Default How to find out who has a forward setup?

    I'm trying to get a list of all users who have a forward setup. I would prefer a way to do this from the command line on the server. I'm sure one of the zm... commands is will do it I just need to know which one and the correct syntax.

    Another thing that would be nice is a way to search for an email address in all of the distribution list that is not handled by the zimbra server.

  2. #2
    Join Date
    Oct 2008
    Location
    San Diego
    Posts
    48
    Rep Power
    7

    Default

    Well, I found a way to get the forwarding info. I used the following command to get a full list of all email addresses.


    /opt/zimbra/bin/zmprov -l gaa domain.com | sort > /tmp/email-list.txt

    I then created a bash script that has a simple for loop to check the address using the "zmprov ga" command and grep for zimbraPrefMailForwardingAddress.

    Still need to figure out the distribution list thing.

  3. #3
    Join Date
    Dec 2006
    Location
    Minneapolis MN
    Posts
    777
    Rep Power
    9

    Default

    You will have to loop through all of the distribution lists (zmprov gadl) and grep out the forwarding addresses:

    zmprov gdl list@domain.com | grep zimbraMailForwardingAddress

    and then you can grep against that for domains in your system.
    01 Networks, LLC / Cybernetik.net
    Zimbra NE and OSS Cloud Hosting
    Shared Web Hosting
    Consulting Services

  4. #4
    Join Date
    Oct 2008
    Location
    San Diego
    Posts
    48
    Rep Power
    7

    Default

    Krishopper,

    Thanks, I was already halfway down the path you suggested.

Similar Threads

  1. Howto setup TLS usage with upstream MTA
    By markymarknz in forum Installation
    Replies: 3
    Last Post: 10-21-2008, 11:49 AM
  2. RHCS setup
    By Klug in forum Installation
    Replies: 1
    Last Post: 05-29-2007, 12:59 AM
  3. zimbra email dns setup
    By robharpham in forum Installation
    Replies: 4
    Last Post: 05-13-2007, 06:25 PM
  4. I just test the 3.2_M2 find a bug
    By crossany in forum Administrators
    Replies: 2
    Last Post: 07-25-2006, 08:07 AM
  5. Order of precedence between Forward & Filter
    By Crexis in forum Installation
    Replies: 2
    Last Post: 06-19-2006, 11:07 PM

Posting Permissions

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