zmprov OUT of maintenance mode

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

zmprov OUT of maintenance mode

Postby silverstr8p » Fri Sep 13, 2019 10:00 pm

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: 462
Joined: Fri Sep 12, 2014 11:18 pm
Location: Victoria, BC
ZCS/ZD Version: 8.7.11_P12 RHEL6 Network Edition
Contact:

Re: zmprov OUT of maintenance mode

Postby JDunphy » Fri Sep 13, 2019 11:03 pm

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
Elite member
Elite member
Posts: 2007
Joined: Wed Oct 09, 2013 11:35 am
Location: Portland, Maine
ZCS/ZD Version: 8.8.12 Network Edition
Contact:

Re: zmprov OUT of maintenance mode

Postby L. Mark Stone » Sat Sep 14, 2019 10:10 am

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/
Zeta Alliance http://www.zetalliance.org/
User avatar
JDunphy
Outstanding Member
Outstanding Member
Posts: 462
Joined: Fri Sep 12, 2014 11:18 pm
Location: Victoria, BC
ZCS/ZD Version: 8.7.11_P12 RHEL6 Network Edition
Contact:

Re: zmprov OUT of maintenance mode

Postby JDunphy » Sat Sep 14, 2019 2:02 pm

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
Elite member
Elite member
Posts: 2007
Joined: Wed Oct 09, 2013 11:35 am
Location: Portland, Maine
ZCS/ZD Version: 8.8.12 Network Edition
Contact:

Re: zmprov OUT of maintenance mode

Postby L. Mark Stone » Sun Sep 15, 2019 10:18 am

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/
Zeta Alliance http://www.zetalliance.org/
silverstr8p
Posts: 6
Joined: Tue Jul 26, 2016 4:37 pm

Re: zmprov OUT of maintenance mode

Postby silverstr8p » Mon Sep 16, 2019 7:38 pm

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 :/

Return to “Administrators”

Who is online

Users browsing this forum: fayaz and 10 guests