King0770-Notes-Installing-Proxy-For-Single-Server

Revision as of 17:36, 3 March 2016 by King0770 (talk | contribs) (Created page with "If you are using a single server and need to install the proxy service, you will need to manually install the zimbra-proxy package, and add proxy to the Service listing in the...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

If you are using a single server and need to install the proxy service, you will need to manually install the zimbra-proxy package, and add proxy to the Service listing in the machine.

To install the proxy package, you will need the Zimbra install directory.

As an example, here are the commands used to setup proxy on a single server node.

Example:


1) su - root

2) cd /root/zcs-NETWORK-8.6.0_GA_1153.RHEL6_64.20141215151258/

3) cd packages

4) rpm -ivh zimbra-proxy-8.6.0_GA_1153.RHEL6_64-20141215151258.x86_64.rpm

5) su - zimbra

6) zmprov -l ms `zmhostname` -- +zimbraServiceEnabled proxy +zimbraServiceInstalled proxy

7) /opt/zimbra/libexec/zmproxyconfig -e -w -H mail.example.com  **or** /opt/zimbra/libexec/zmproxyconfig -e -w -H `zmhostname`

Check the settings with the following command; note the -l option.

zmprov -l gs `zmhostname` zimbraMailReferMode zimbraMailPort zimbraMailSSLPort zimbraReverseProxyLookupTarget zimbraMailMode zimbraMailProxyPort zimbraMailSSLProxyPort zimbraReverseProxyHttpEnabled zimbraReverseProxyMailMode

Should see something like...

# name mail.example.com

zimbraMailMode: both
zimbraMailPort: 8080
zimbraMailProxyPort: 80
zimbraMailReferMode: reverse-proxied
zimbraMailSSLPort: 8443
zimbraMailSSLProxyPort: 443
zimbraReverseProxyHttpEnabled: TRUE
zimbraReverseProxyLookupTarget: TRUE
zimbraReverseProxyMailMode: https

Then do a complete ZCS shutdown

zmcontrol stop

Make sure there are no zimbra processes running

ps -fu zimbra

Start up ZCS & check status

zmcontrol start

zmcontrol status

After the start up, run a couple of zmprov commands (quick test to make sure there are no errors)

zmprov gas
zmprov gad
Jump to: navigation, search