King0770-Notes-Installing-Proxy-For-Single-Server: Difference between revisions

No edit summary
No edit summary
Line 17: Line 17:
4) rpm -ivh zimbra-proxy-8.6.0_GA_1153.RHEL6_64-20141215151258.x86_64.rpm
4) rpm -ivh zimbra-proxy-8.6.0_GA_1153.RHEL6_64-20141215151258.x86_64.rpm


5) su - zimbra
5) rpm -ivh zimbra-memcached-8.6.0_GA_1153.RHEL6_64-20141215151258.x86_64.rpm


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


7) /opt/zimbra/libexec/zmproxyconfig -e -w -H mail.example.com  **or** /opt/zimbra/libexec/zmproxyconfig -e -w -H `zmhostname`
7) zmprov -l ms `zmhostname` -- +zimbraServiceEnabled proxy +zimbraServiceInstalled proxy
 
8) zmprov -l ms `zmhostname` -- +zimbraServiceEnabled memcached +zimbraServiceInstalled memcached
 
9) /opt/zimbra/libexec/zmproxyconfig -e -w -H mail.example.com  **or** /opt/zimbra/libexec/zmproxyconfig -e -w -H `zmhostname`


</pre></code>
</pre></code>

Revision as of 16:51, 12 January 2018

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) rpm -ivh zimbra-memcached-8.6.0_GA_1153.RHEL6_64-20141215151258.x86_64.rpm

6) su - zimbra

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

8) zmprov -l ms `zmhostname` -- +zimbraServiceEnabled memcached +zimbraServiceInstalled memcached

9) /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