Export filter rules

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
armitage318
Advanced member
Advanced member
Posts: 98
Joined: Sat Sep 13, 2014 2:01 am

Export filter rules

Post by armitage318 »

Hi,
how can I export filter rules for every user?

I'm using Zimbra 5.0.10

Thankyou
3244vmahajan
Advanced member
Advanced member
Posts: 138
Joined: Sat Sep 13, 2014 1:00 am

Export filter rules

Post by 3244vmahajan »

Export the zimbraMailSieveScript account attribute.
jerryboi
Advanced member
Advanced member
Posts: 125
Joined: Fri Sep 12, 2014 10:09 pm

Export filter rules

Post by jerryboi »

If you were to transfer filter rules from account a.geezer to b.geezer here is what you do:
[zimbra@zimber tmp]$ zmprov ga a.geezer@yourdomain.eu zimbraMailSieveScript > /tmp/geezer.filter_rules.sieve

[zimbra@zimber tmp]$ nano /tmp/geezer.filter_rules.sieve

[zimbra@zimber tmp]$ chmod +x /tmp/geezer.filter_rules.sieve

[zimbra@zimber tmp]$ ./geezer.filter_rules.sieve

[zimbra@zimber tmp]$
in nano you change the first characters from #name a. to zmprov ma b. and put the part beginning with require till EOF into single quotes.
I realise this is not what the OP wanted, but I suppose he figured it out by now :)
krishnaprasad
Posts: 2
Joined: Sat Sep 13, 2014 3:05 am

Export filter rules

Post by krishnaprasad »

Dear All,
We are using ZCS 8 , in that we want maintain global filters for all mail accounts.i have read a post how to transfer filters from one account to another account using 'zimbraMailSieveScript ' , can any one give the script to apply all accounts.
Regards,

krishnaprasad
unc0nnected
Posts: 34
Joined: Sat Sep 13, 2014 3:52 am

Export filter rules

Post by unc0nnected »

Above solution no longer works verbatim, you need to change the end .sieve file up just a little bit. Solution here
Post Reply