This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
internet:mail:zimbra:zimbra_cli [2018/11/28 13:15] gcooper |
internet:mail:zimbra:zimbra_cli [2023/03/02 13:36] (current) gcooper |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Zimbra Command Line Tools ====== | ====== Zimbra Command Line Tools ====== | ||
- | |||
- | ===== CLI Examples ===== | ||
http:// | http:// | ||
Line 9: | Line 7: | ||
http:// | http:// | ||
- | ==== Delete All Mail in a Folder ==== | + | ===== Delete All Mail in a Folder |
First, you might want to move all folders you want to delete, then run the following command on "/ | First, you might want to move all folders you want to delete, then run the following command on "/ | ||
Line 17: | Line 15: | ||
</ | </ | ||
- | ==== Delete All Mail in an Account ==== | + | ===== Delete All Mail in an Account |
:!: The above command may be less dangerous to use, but may be a little more work. | :!: The above command may be less dangerous to use, but may be a little more work. | ||
Line 29: | Line 27: | ||
</ | </ | ||
- | ==== List All Users ==== | + | ===== List All Users ===== |
https:// | https:// | ||
Line 44: | Line 42: | ||
</ | </ | ||
- | + | ===== Get All Addresses | |
- | ==== Get All Addresses ==== | + | |
**get-all-addresses.sh** | **get-all-addresses.sh** | ||
Line 63: | Line 60: | ||
done | done | ||
zmprov gadl | zmprov gadl | ||
+ | </ | ||
+ | |||
+ | ===== Manage CoS ===== | ||
+ | |||
+ | :!: '' | ||
+ | |||
+ | Show all CoS: | ||
+ | |||
+ | < | ||
+ | zmprov gac | ||
+ | </ | ||
+ | |||
+ | Enable a zimlet for all CoS: | ||
+ | |||
+ | < | ||
+ | for cos in `zmprov gac`;do zmzimletctl acl < | ||
+ | </ | ||
+ | |||
+ | Modify a setting for all CoS: | ||
+ | |||
+ | < | ||
+ | for cos in `zmprov gac`; do zmprov mc $cos zimbraFeatureResetPasswordStatus enabled; done | ||
+ | </ | ||
+ | |||
+ | Show accounts per Class of Service: | ||
+ | |||
+ | < | ||
+ | zmprov cta domain.tld | ||
+ | </ | ||
+ | |||
+ | Change the CoS for an account: | ||
+ | |||
+ | < | ||
+ | zmprov sac user@domain.tld another-cos | ||
</ | </ |