CentOS 7.x Zimbra enable automatic http to https redirect

From Notes_Wiki
Revision as of 07:25, 26 September 2019 by Saurabh (talk | contribs) (Created page with "<yambe:breadcrumb>CentOS_7.x_Zimbra_configuration|Zimbra configuration</yambe:breadcrumb> =CentOS 7.x Zimbra enable automatic http to https redirect= In latest Zimbra use of...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<yambe:breadcrumb>CentOS_7.x_Zimbra_configuration|Zimbra configuration</yambe:breadcrumb>

CentOS 7.x Zimbra enable automatic http to https redirect

In latest Zimbra use of Zimbra-proxy is mandatory. Hence doing automatic redirect from http to https can be done using:

  zmprov ms `zmhostname` zimbraReverseProxyMailMode redirect
  zmproxyctl restart

Older method described at Redirect Zimbra users from HTTP to HTTPS does not works any more and throws error:

  Attempting to query proxy (mail.example.com) settings for zimbraReverseProxyMailMode and zimbraReverseProxySSLToUpstreamEnabled.
  On proxy (mail.example.com): zimbraReverseProxyMailMode='https', zimbraReverseProxySSLToUpstreamEnabled='TRUE'
  Error: When zimbraReverseProxyMailMode (on the proxy server) is https, the only valid settings for zimbraMailMode are both or https.  

Refer: