Hi,
how can I export filter rules for every user?
I'm using Zimbra 5.0.10
Thankyou
Export filter rules
-
- Advanced member
- Posts: 138
- Joined: Sat Sep 13, 2014 1:00 am
Export filter rules
Export the zimbraMailSieveScript account attribute.
Export filter rules
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
[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
-
- Posts: 2
- Joined: Sat Sep 13, 2014 3:05 am
Export filter rules
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
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
-
- Posts: 34
- Joined: Sat Sep 13, 2014 3:52 am
Export filter rules
Above solution no longer works verbatim, you need to change the end .sieve file up just a little bit. Solution here