zmprov OUT of maintenance mode

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
silverstr8p
Posts: 6
Joined: Tue Jul 26, 2016 4:37 pm

zmprov OUT of maintenance mode

Post by silverstr8p »

I see that I can use

Code: Select all

zmprov ma joe@domain.com zimbraAccountStatus maintenance
To put an account into maintenance, how do I change back to working normally from the command line?
User avatar
JDunphy
Outstanding Member
Outstanding Member
Posts: 889
Joined: Fri Sep 12, 2014 11:18 pm
Location: Victoria, BC
ZCS/ZD Version: 9.0.0_P39 NETWORK Edition

Re: zmprov OUT of maintenance mode

Post by JDunphy »

silverstr8p wrote:I see that I can use

Code: Select all

zmprov ma joe@domain.com zimbraAccountStatus maintenance
To put an account into maintenance, how do I change back to working normally from the command line?
active is the normal state

Code: Select all

# su - zimbra
% zmprov ga joe@domain.com zimbraAccountStatus 
zimbraAccountStatus: active
% zmprov ma joe@domain.com zimbraAccountStatus maintenance
% zmprov ga joe@domain.com zimbraAccountStatus 
zimbraAccountStatus: maintenance
% zmprov ma joe@domain.com zimbraAccountStatus active
% zmprov ga joe@domain.com zimbraAccountStatus 
zimbraAccountStatus: active
User avatar
L. Mark Stone
Ambassador
Ambassador
Posts: 2796
Joined: Wed Oct 09, 2013 11:35 am
Location: Portland, Maine, US
ZCS/ZD Version: 10.0.6 Network Edition
Contact:

Re: zmprov OUT of maintenance mode

Post by L. Mark Stone »

And for any zmprov variable, you can get the allowed values and other information by getting a description of the attribute:

Code: Select all

zmprov desc -a zimbraAccountStatus 
Hope that helps,
Mark
___________________________________
L. Mark Stone
Mission Critical Email - Zimbra VAR/BSP/Training Partner https://www.missioncriticalemail.com/
AWS Certified Solutions Architect-Associate
User avatar
JDunphy
Outstanding Member
Outstanding Member
Posts: 889
Joined: Fri Sep 12, 2014 11:18 pm
Location: Victoria, BC
ZCS/ZD Version: 9.0.0_P39 NETWORK Edition

Re: zmprov OUT of maintenance mode

Post by JDunphy »

Thanks for sharing Mark,

I looked at the source code for this answer which took quite a bit longer to see than your suggestion. I didn't realize the states for zimbraAccountStatus were so well documented. I need to remember to zmprov describe first also!

Code: Select all

# su - zimbra
% zmprov desc -a zimbraAccountStatus
zimbraAccountStatus
    account status. active - active lockout - no login until lockout
    duration is over, mail delivery OK. locked - no login, mail delivery
    OK. maintenance - no login, no delivery(lmtp server returns 4.x.x
    Persistent Transient Failure). pending - no login, no delivery(lmtp
    server returns 5.x.x Permanent Failure), Account behavior is like
    closed, except that when the status is being set to pending, account
    addresses are not removed from distribution lists. The use case is for
    hosted. New account creation based on invites that are not completed
    until user accepts TOS on account creation confirmation page. closed -
    no login, no delivery(lmtp server returns 5.x.x Permanent Failure),
    all addresses (account main email and all aliases) of the account are
    removed from all distribution lists.

               type : enum
              value : active,maintenance,locked,closed,lockout,pending
           callback : AccountStatus
          immutable : false
        cardinality : single
         requiredIn : account
         optionalIn : 
              flags : domainAdminModifiable
           defaults : 
                min : 
                max : 
                 id : 2
    requiresRestart : 
              since : 
    deprecatedSince : 
User avatar
L. Mark Stone
Ambassador
Ambassador
Posts: 2796
Joined: Wed Oct 09, 2013 11:35 am
Location: Portland, Maine, US
ZCS/ZD Version: 10.0.6 Network Edition
Contact:

Re: zmprov OUT of maintenance mode

Post by L. Mark Stone »

There’s a similar information mechanism for localconfig variables too, e.g.:

Code: Select all

zmlocalconfig -i ldap_url
Hope that helps,
Mark
___________________________________
L. Mark Stone
Mission Critical Email - Zimbra VAR/BSP/Training Partner https://www.missioncriticalemail.com/
AWS Certified Solutions Architect-Associate
silverstr8p
Posts: 6
Joined: Tue Jul 26, 2016 4:37 pm

Re: zmprov OUT of maintenance mode

Post by silverstr8p »

Thanks for this. While trying to run these commands I got an error that makes me think the SSL is expired?

Code: Select all

./zmprov ma user@somedomain.com zimbraAccountStatus active
ERROR: zclient.IO_ERROR (invoke sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed, server: localhost) (cause: javax.net.ssl.SSLHandshakeException sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed)
So I guess I have to figure out how to update that from the command line, since the admin email account is the one that's set to maintenance :/
Post Reply