Results 1 to 2 of 2

Thread: import-export rules - migrating from zimbra7 to zimbra8

  1. #1
    Join Date
    Apr 2012
    Posts
    25
    Rep Power
    3

    Default import-export rules - migrating from zimbra7 to zimbra8

    Hi,

    I've used this command to export filter and rules on server A

    zmprov ga myaccount@mydomain.com zimbraMailSieveScript > /tmp/myaccount_filter_rules.sieve

    but now I don't understand the correct way to import file in server B

    On wiki at page Email Rules Migration - Zimbra :: Wiki at paragraph "Processing a Sieve script and inserting it via zmprov" there aren't good example

    Thank you all

  2. #2
    Join Date
    Jul 2012
    Location
    Bangalore, India
    Posts
    34
    Rep Power
    3

    Default

    Hello g2d,

    I got it done this way:

    1) Modified the script by removing the initial commented line, and deleted 'zimbraMailSieveScript: '. So the first line in the script looks like this:
    Code:
     require ["fileinto", "reject", "tag", "flag"];
    2) Transferred the script to the other server, and assigned the entire output to a variable, like so:
    Code:
     SIEVEVAR=`cat /tmp/testing.sieve`
    3) Ran zmprov, enclosing the variable in double quotes:
    Code:
     zmprov ma test@example.com zimbraMailSieveScript "$SIEVEVAR"

Similar Threads

  1. Create "One-Click-Rules", move rules
    By Werner in forum Administrators
    Replies: 1
    Last Post: 07-13-2011, 02:49 AM
  2. Create "One-Click-Rules", move rules
    By Werner in forum Developers
    Replies: 1
    Last Post: 07-13-2011, 02:49 AM
  3. Import spamassasin rules
    By lfasci in forum Administrators
    Replies: 0
    Last Post: 10-07-2009, 07:22 AM
  4. Is it possible to IMPORT in zcs Outlook rules?
    By GLuDeR in forum Zimbra Connector for Outlook
    Replies: 1
    Last Post: 10-03-2008, 01:15 PM
  5. Connector 5.0 cannot import/export rules
    By tgrizzel in forum Zimbra Connector for Outlook
    Replies: 4
    Last Post: 10-08-2007, 10:20 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
  •