Results 1 to 2 of 2

Thread: Adding mail filters via CLI?

  1. #1
    Join Date
    Mar 2006
    Posts
    1
    Rep Power
    9

    Default Adding mail filters via CLI?

    Does anyone know if you can add mail filters (User-defined or Server-defined) from the CLI?

    I need to add a filter for all accounts on the server.

    The filter I need to add is:

    # TestEmail_Auto_Reply
    if allof (header :is "subject" "TEST: Email Test" ,
    body :contains "SomeOffTheWallWords" )
    {
    redirect "admin_user@example.com";
    discard;
    stop;
    }

    I got this from the filter I put in one account (zmprov ga user@example.com)

    I would prefer something that can be scripted or easily duplicated.

    Thanks for your help.

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

    Default

    Welcome to the forums.

    You need zmprov with zimbraMailSieveScript to do what you need, have a look at this thread for some details. You can also bulk provision users with a script, have a look in the wiki fo some details.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

Similar Threads

  1. Problems with port 25
    By yogiman in forum Installation
    Replies: 57
    Last Post: 06-13-2011, 02:55 PM
  2. Replies: 7
    Last Post: 02-03-2011, 07:01 AM
  3. fresh install down may be due to tomcat
    By gon in forum Installation
    Replies: 10
    Last Post: 07-25-2007, 09:09 AM
  4. Replies: 13
    Last Post: 07-20-2007, 04:21 AM
  5. receiveing mail
    By maybethistime in forum Administrators
    Replies: 15
    Last Post: 12-09-2005, 04:55 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
  •