Results 1 to 10 of 10

Thread: Need script forget all the forwarded mail list with create command.

Hybrid View

  1. #1
    Join Date
    Jul 2013
    Posts
    5
    Rep Power
    2

    Question Need script forget all the forwarded mail list with create command.

    I am looking for a script will get all the email id which is have with forwarded mails and the output file forwarded mails with (forwarded mail creating) creating command.

    Please guide me to get all forwarded list.

    Thanks,
    Last edited by phoenix; 07-22-2013 at 07:41 AM.

  2. #2
    Join Date
    Oct 2009
    Location
    China
    Posts
    34
    Rep Power
    6

    Default

    zmprov help commands
    Just do it.
    覧覧覧覧覧覧覧
    QQ:307741085
    Email:fine@zcsmail.com

  3. #3
    Join Date
    Jul 2007
    Posts
    343
    Rep Power
    8

  4. #4
    Join Date
    Jul 2013
    Posts
    5
    Rep Power
    2

    Default

    Hi Prasanth,

    I have tried link which is your sent. Thanks, But I getting below error message. please help me how do i proceed the command.



    $ zmprov gaa -v | grep -e zimbraMailDeliveryAddress: -e zimbraMailForwardingAddress: -e zimbraPrefMailForwardingAddress:|sed 's/ //g'

    ERROR: service.INVALID_REQUEST (invalid request: can only be used with "zmprov -l/--ldap")

    **********************************************

    $ vi test1.sh
    zmprov gaa -v | grep -e zimbraMailDeliveryAddress: -e zimbraMailForwardingAddress: -e zimbraPrefMailForwardingAddress:|sed 's/ //g' > file.out

    text="zimbraMailDeliveryAddress"
    for i in `cat file.out`
    do
    palabra=`echo $i|cut -d":" -f1`
    if [ $palabra != $text ]
    then
    echo $account " ---> " $i
    else
    account=`echo $i|cut -d":" -f2`
    fi
    done
    ******************************************


    $ ./test1.sh
    ERROR: service.INVALID_REQUEST (invalid request: can only be used with "zmprov -l/--ldap")


    Please guide me to proceed further..


    Thanks,

  5. #5
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by mcpbalaji View Post
    $ ./test1.sh
    ERROR: service.INVALID_REQUEST (invalid request: can only be used with "zmprov -l/--ldap")


    Please guide me to proceed further..
    Read the error message and follow the instructions.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  6. #6
    Join Date
    Jul 2007
    Posts
    343
    Rep Power
    8

    Default

    User

    zmprov -l gaa -v | grep -e zimbraMailDeliveryAddress: -e zimbraMailForwardingAddress: -e zimbraPrefMailForwardingAddress:|sed 's/ //g'

    instead of

    zmprov gaa -v | grep -e zimbraMailDeliveryAddress: -e zimbraMailForwardingAddress: -e zimbraPrefMailForwardingAddress:|sed 's/ //g'
    ~=Prashant=~

Similar Threads

  1. Replies: 1
    Last Post: 01-16-2008, 08:40 AM
  2. zmmailbox create filter on the command line
    By alimovz in forum Administrators
    Replies: 1
    Last Post: 01-29-2007, 02:55 PM
  3. not getting forwarded mail
    By rmvg in forum Administrators
    Replies: 9
    Last Post: 12-14-2005, 05:51 PM
  4. script auto create email accounts
    By raidip in forum Administrators
    Replies: 2
    Last Post: 09-29-2005, 12:46 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
  •