Recent Changes - Search:




Zimbra zmproxyconfig command


This comamnd was run on the proxy server.

[zimbra@proxy ~]$ zmprov gs `zmhostname`|egrep '8080|80|8443|443'
zimbraMailPort: 8080
zimbraMailProxyPort: 80
zimbraMailSSLPort: 8443
zimbraMailSSLProxyClientCertPort: 3443
zimbraMailSSLProxyPort: 443



Format: POP-STORE:POP-PROXY:POPS-STORE:POPS-PROXY (Ex: 7110:110:7995:995)

Commands to run on Proxy and mailstore

/opt/zimbra/libexec/zmproxyconfig -m -e -o -i 7143:143:7993:993 -p 7110:110:7995:995 -H proxy.zimbra.lab

/opt/zimbra/libexec/zmproxyconfig -w -e -o  -x http -a 8080:80:8443:443 -H proxy.zimbra.lab
[root@proxy tmp]#


/opt/zimbra/libexec/zmproxyconfig -w -e -o  -x https -a 8080:80:8443:443 -H mail.zimbra.lab
zmcontrol restart

/opt/zimbra/libexec/zmproxyconfig -w -e -o  -x https -a 8080:80:8443:443 -H mail.zimbra.lab
[zimbra@mail ~]$ zmcontrol restart

/opt/zimbra/libexec/zmproxyconfig -h

Usage: /opt/zimbra/libexec/zmproxyconfig [-h] [-o] [-m] [-w] [-d [-r] [-s] [-a w1:w2:w3:w4] [-i p1:p2:p3:p4] 
[-p p1:p2:p3:p4] [-x mailmode]] [-e [-a w1:w2:w3:w4] [-i p1:p2:p3:p4] [-p p1:p2:p3:p4] [-x mailmode]] [-f] -H hostname

        -h: display this help message
        -H: Hostname of server on which enable/disable proxy functionality.
        -a: Colon separated list of Web ports to use. Format: HTTP-STORE:HTTP-PROXY:HTTPS-STORE:HTTPS-PROXY (Ex: 8080:80:8443:443)
        -d: disable proxy
        -e: enable proxy
        -f: Full reset on memcached port and search queries and POP/IMAP throttling.
        -i: Colon separated list of IMAP ports to use. Format: IMAP-STORE:IMAP-PROXY:IMAPS-STORE:IMAPS-PROXY (Ex: 7143:143:7993:993)
        -m: Toggle mail proxy portions
        -o: Override enabled checks
        -p: Colon separated list of POP ports to use. Format: POP-STORE:POP-PROXY:POPS-STORE:POPS-PROXY (Ex: 7110:110:7995:995)
        -r: Run against a remote host.  Note that this requires the server to be properly configured in the LDAP master.
        -s: Set cleartext to FALSE (secure mode) on disable
        -t: Disable reverse proxy lookup target for store server.  Only valid with -d.  Be sure that you intend for all proxy 
function for the server to be disabled
        -w: Toggle Web proxy portions
        -x: zimbraMailMode to use on disable (Default: http)
hostname is the value of the zimbra_server_hostname LC key for the server being modified.
Required options are -f by itself, or -f with -d or -e.
Note that -d or -e require one or both of -m and -w.
Note that -i or -p require -m.
Note that -a requires -w.
Note that -x requires -w and -d for store.
Note that -x requires -w for proxy.
The following are the defaults for -a, -i, -p, and -x if they are not supplied as options.
-a default on enable: 8080:80:8443:443
-a default on disable: 80:0:443:0
-i default on enable: 7143:143:7993:993
-i default on disable: 143:7143:993:7993
-p default on enable: 7110:110:7995:995
-p default on disable: 110:7110:995:7995
-x default on store disable: http
-x default on proxy enable/disable: http

Checking the configuration

[zimbra@mail ~]$ zmprov gs `zmhostname`|egrep '8080|80|8443|443|zimbraMailReferMode|zimbraReverseProxyLookupTarget|zimbraMailMode'
zimbraCreateTimestamp: 20111128063918Z
zimbraMailMode: http
zimbraMailPort: 8080
zimbraMailProxyPort: 80
zimbraMailReferMode: reverse-proxied
zimbraMailSSLPort: 8443
zimbraMailSSLProxyClientCertPort: 3443
zimbraMailSSLProxyPort: 443
zimbraMtaAuthURL: http://mail.zimbra.lab:80/service/soap/
zimbraReverseProxyLookupTarget: TRUE

Changing the values

[zimbra@proxy includes]$ zmprov gs `zmhostname` |grep zimbraMailReferMode
zimbraMailReferMode: wronghost

[zimbra@proxy includes]$ zmprov ms `zmhostname` zimbraMailReferMode reverse-proxied

[zimbra@proxy includes]$ zmprov gs `zmhostname` |grep zimbraMailReferMode
zimbraMailReferMode: reverse-proxied
[zimbra@proxy includes]$ zmcontrol restart

More in detail at ..



Edit - History - Print - Recent Changes - Search
Page last modified on November 28, 2011, at 11:59 AM