The zmprov tool can execute many tasks, such as creating accounts, aliases, domain names, cos, lists, and calendars.
For the email administrator, zmporv is a powerful tool in CLI (command line interface) for daily work. Of course, you can also perform these operations on the Administrator console.
// Email Environment
System centos6.4, zimbra7
Zimbra works normally and the domain name uses zijian.com
The created test users include user1, user2, user3,... user10.
// View group information
1. View All groups under a domain name (getalldistributionlists)
Zmprov gadl
2. view group members (get distributionlistmember)
Zmprov gdlm [email protected]
3. View Details of a group (getdistributionlist)
Zmprov GDL [email protected]
// Manage group members
1. Create a group (createdistributionlist)
Zmprov CDL [email protected]
2. Add distributionlistmember)
Zmporv adlm [email protected] [email protected]
Zmporv adlm [email protected] [email protected]
Zmporv adlm [email protected] [email protected]
3. removedistributionlistmember)
Zmprov rdlm [email protected] [email protected]
// Authorize the user to send emails to the group
# By default (create only groups and add users without zmprov authorization), all users can send emails to all groups created under the domain name, after explicitly authorizing some users to send emails, other users cannot send emails to this group.
# To Use Authorization commands, you must enable the milter Server
How to enable: Console ----> global settings -----> MTA ------> enable milter Server
1. Authorize user1 and user4 users to send emails to [email protected]
Zmprov grr DL [email protected] USR [email protected] sendtodistlist
Zmprov grr DL [email protected] USR [email protected] sendtodistlist
2. revoke the [email protected] email permission from user1 to the group.
Zmprov rvr dl [email protected] USR [email protected] sendtodistlist
Note: The user authorized to send emails to the group does not have any relationship with the user in the group.
Zimbra uses the zmprov command to create a group and authorize the group to send emails.