Results 1 to 10 of 10

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

  1. #1
    mcpbalaji is offline Junior Member
    Join Date
    Jul 2013
    Posts
    5
    Rep Power
    1

    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 06:41 AM.

  2. #2
    xuyanru's Avatar
    xuyanru is offline Active Member
    Join Date
    Oct 2009
    Location
    China
    Posts
    34
    Rep Power
    5

    Default

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

  3. #3
    prashant's Avatar
    prashant is offline Zimbra Employee
    Join Date
    Jul 2007
    Posts
    343
    Rep Power
    7

  4. #4
    mcpbalaji is offline Junior Member
    Join Date
    Jul 2013
    Posts
    5
    Rep Power
    1

    Default

    Quote Originally Posted by prashant View Post
    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 online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    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
    prashant's Avatar
    prashant is offline Zimbra Employee
    Join Date
    Jul 2007
    Posts
    343
    Rep Power
    7

    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=~

  7. #7
    mcpbalaji is offline Junior Member
    Join Date
    Jul 2013
    Posts
    5
    Rep Power
    1

    Default

    Yes Thank you so much. I got out put. Then can help the same to get the MailAlias list.

  8. #8
    mcpbalaji is offline Junior Member
    Join Date
    Jul 2013
    Posts
    5
    Rep Power
    1

    Default

    Quote Originally Posted by prashant View Post
    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'
    How do i get the all alias list. Can you guide me please...

  9. #9
    prashant's Avatar
    prashant is offline Zimbra Employee
    Join Date
    Jul 2007
    Posts
    343
    Rep Power
    7

  10. #10
    mcpbalaji is offline Junior Member
    Join Date
    Jul 2013
    Posts
    5
    Rep Power
    1

    Default

    Quote Originally Posted by prashant View Post
    Yes, Thanks for suggestion, But the out file giving all the mail box account i need only the alias mail id and alias id's.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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, 11:46 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
  •