To put all accounts for a domain into maintenance mode, blocking access you can do the following.
Put the domain into maintenance mode:
Code:
# zmprov md mydomain.com zimbraDomainStatus maintenance
Put the domain into active mode:
Code:
# zmprov md mydomain.com zimbraDomainStatus active
And to query the current attributes of the domain:
Code:
# zmprov gd mydomain.com
To query just the zimbraDomainStatus attribute of the domain:
Code:
# zmprov gd mydomain.com | grep -i zimbraDomainStatus
Note: Only Zimbra admins will be able to login to a domain when in maintenance mode. Normal users will not be able to login.