Enabling Zimbra Proxy and memcached: Difference between revisions

(New page: == '''***THIS DOCUMENT IS NOT COMPLETE AND IS WIP- jbryan 02-19-2009***''' == == Multi-node == === HTTP === When using ''zmproxyinit'' to enable HTTP proxy, ''-w'' is used to indicate web...)
 
No edit summary
Line 20: Line 20:
  /opt/zimbra/libexec/./zmproxyinit -w -e -a 80:0:443:0 -H `zmhostname
  /opt/zimbra/libexec/./zmproxyinit -w -e -a 80:0:443:0 -H `zmhostname


==== Sharing ====
==== Protocol requirements including HTTPS redirect ====
HTTP proxy can support protocol modes for HTTP or HTTPS only, both HTTP and HTTPS, mixed HTTP and HTTPS or HTTPS redirect from HTTP. Redirect is a popular configuration. This configuration must be made to the proxy servers.
 
* HTTPS redirect from HTTP
zmprov ms proxy.server.name zimbraReverseProxyMailMode redirect
 
* HTTP and HTTPS (support both)
zmprov ms proxy.server.name zimbraReverseProxyMailMode both
 
* HTTPS only
zmprov ms proxy.server.name zimbraReverseProxyMailMode https
 
* HTTP only
zmprov ms proxy.server.name zimbraReverseProxyMailMode http
 
* "mixed" will cause only authentication to be sent over HTTPS
zmprov ms proxy.server.name zimbraReverseProxyMailMode mixed
 
==== Documents & Sharing ====
It is important to consider access to documents (Briefcase) and shares when setting up HTTP proxy. A publicly reachable address must be configured to be used for the REST and SOAP proxy interfaces otherwise components requiring access to these interfaces will fail. Calendar sharing is an example of one component. Set '''zimbraPublicServiceHostname''', '''zimbraPublicServiceProtocol''', and '''zimbraPublicServicePort''' when applicable. These values are usually not required without proxy since the REST and SOAP proxy interfaces take the value of the Zimbra mailbox service hostname by default. These attributes can be set globally to be inherited by all domains or per domain.
 
Set zimbraPublicServiceHostname to the value of the host that will be used in the URL for access to the HTTP proxy.
* This command sets ''mail.domain.com'' as the public hostname to be used for access to all domains in the Zimbra directory:
zmprov mcf zimbraPublicServiceHostname mail.domain.com
 
* This command sets ''mail.domaina.com'' as the public hostname to be used for access to ''domaina.com'' domain:
zmprov md domaina.com zimbraPublicServiceHostname mail.domaina.com
 
* Set zimbraPublicServiceProtocol to ''http'' or ''https'' depending on the protocol requirements for HTTP proxy:
zmprov md domaina.com zimbraPublicServiceProtocol https
 
* Set zimbraPublicServicePort to the value that corresponds to the HTTP proxy port used in the URL (optional if standard ports 80 or 443 are used for proxy listeners):
zmprov md domaina.com zimbraPublicServicePort 443


=== IMAP/POP3 ===
=== IMAP/POP3 ===
====Preparing proxy hosts ====
====Preparing proxy hosts ====

Revision as of 00:44, 20 February 2009

***THIS DOCUMENT IS NOT COMPLETE AND IS WIP- jbryan 02-19-2009***

Multi-node

HTTP

When using zmproxyinit to enable HTTP proxy, -w is used to indicate web proxy and -a is used to specify a colon separated list of web ports in format HTTP-STORE:HTTP-PROXY:HTTPS-STORE:HTTPS-PROXY. Note these port designations only specify listener ports for the server specified with -H, therefore, use a value of "0" (disabled) to avoid port conflict errors.

Preparing proxy hosts

Enable the proxy host to listen on ports 80 and 443. Login to each host running zimbra-proxy and run

/opt/zimbra/libexec/./zmproxyinit -w -e -a 0:80:0:443 -x both -H `zmhostname`

HTTP-PROXY and HTTPS-PROXY ports are set to indicate listener ports for the HTTP proxy host. HTTP-STORE and HTTPS-STORE designations are 0 (disabled) since they apply only to mailbox server configurations and this is a proxy only host.

Preparing mailstore hosts

Login to each host running zimbra-mailbox and run

/opt/zimbra/libexec/./zmproxyinit -w -e -a 8080:0:8443:0 -H `zmhostname`

HTTP-STORE and HTTPS-STORE ports of 8080 and 8443 are set to indicate listener ports for the mailbox server host. HTTP-PROXY and HTTPS-PROXY designations are 0 (disabled) since they apply only to proxy server configurations and this is a mailbox only host.

Alternatively, mailbox servers can listen on ports 80 and 443 without conflict to the proxy or other service. Just specify the desired listener ports with zmproxyinit's -a flag

/opt/zimbra/libexec/./zmproxyinit -w -e -a 80:0:443:0 -H `zmhostname

Protocol requirements including HTTPS redirect

HTTP proxy can support protocol modes for HTTP or HTTPS only, both HTTP and HTTPS, mixed HTTP and HTTPS or HTTPS redirect from HTTP. Redirect is a popular configuration. This configuration must be made to the proxy servers.

  • HTTPS redirect from HTTP
zmprov ms proxy.server.name zimbraReverseProxyMailMode redirect
  • HTTP and HTTPS (support both)
zmprov ms proxy.server.name zimbraReverseProxyMailMode both
  • HTTPS only
zmprov ms proxy.server.name zimbraReverseProxyMailMode https
  • HTTP only
zmprov ms proxy.server.name zimbraReverseProxyMailMode http
  • "mixed" will cause only authentication to be sent over HTTPS
zmprov ms proxy.server.name zimbraReverseProxyMailMode mixed

Documents & Sharing

It is important to consider access to documents (Briefcase) and shares when setting up HTTP proxy. A publicly reachable address must be configured to be used for the REST and SOAP proxy interfaces otherwise components requiring access to these interfaces will fail. Calendar sharing is an example of one component. Set zimbraPublicServiceHostname, zimbraPublicServiceProtocol, and zimbraPublicServicePort when applicable. These values are usually not required without proxy since the REST and SOAP proxy interfaces take the value of the Zimbra mailbox service hostname by default. These attributes can be set globally to be inherited by all domains or per domain.

Set zimbraPublicServiceHostname to the value of the host that will be used in the URL for access to the HTTP proxy.

  • This command sets mail.domain.com as the public hostname to be used for access to all domains in the Zimbra directory:
zmprov mcf zimbraPublicServiceHostname mail.domain.com
  • This command sets mail.domaina.com as the public hostname to be used for access to domaina.com domain:
zmprov md domaina.com zimbraPublicServiceHostname mail.domaina.com
  • Set zimbraPublicServiceProtocol to http or https depending on the protocol requirements for HTTP proxy:
zmprov md domaina.com zimbraPublicServiceProtocol https
  • Set zimbraPublicServicePort to the value that corresponds to the HTTP proxy port used in the URL (optional if standard ports 80 or 443 are used for proxy listeners):
zmprov md domaina.com zimbraPublicServicePort 443

IMAP/POP3

Preparing proxy hosts

Jump to: navigation, search