Zimbra 7, how to automatically redirect HTTP connexion to the secure HTTPS webmail

Posted by Hypee | Sat 30, Jul 2011

Zimbra, is the mail server and webmail service we are offering to our customers, it allows several access modes :

  • HTTP only
  • HTTPS only
  • A mixed mode of HTTP and HTTPS

    For security purposes, the HTTP mode should generally be avoided, login and password informations are sent unencrypted on the network and they can easily be stolen.

Also, we only install the secure "HTTPS" mode.

To access your webmail, you will have to use this kind of address : "https://webmail.yourdomain.com".

If you use the insecure address "http://webmail.yourdomain.com" you will see an error page.

To avoid this default Zimbra's behavior, we activated the "http" -> "https" redirection, now when you will use the HTTP URL, you will automatically be redirected to the "HTTPS" page.

For people managing their own Zimbra server, the configuration is done using the console :

root@webmail:~# su – zimbra
zimbra@webmail:~$  zmtlsctl redirect
zimbra@webmail:~$  zmcontrol stop
zimbra@webmail:~$  zmcontrol start

The "zmtlsctl" command can have the following parameters :

– http only
https – https only, http is denied.
both – The user can use http:// or https:// and he will stay in the chosen mode for the rest of his connexion. 
mixed – When a user connects using http://, he is redirected to "https", but only for the log in step, then he returns to the http:// mode. When using https://, the whole session is using https://
redirect – When connecting using http:// the user is redirected to https:// and continues to use the secure connexion for all his session.

Reply to this post


  1. Avatar
    pytonic.com 2012-05-18 08:00:43
    when pytonic IDE is available?
  2. Avatar
    Wellington Torrejais da Silva 2014-06-17 15:41:17
  3. Avatar
    Rajeh Samineni 2015-04-30 06:07:36

    we are using zimbra 8 mail server, we have some problem that we implemneted ssl for mail.xyz.com and which is working fine.
    but when we are triying to access the xyz.com, still getting ssl validation issue.
    can let me know how we can redirec the ^any (xyz.com) to https://mail.xyz.com.

    Rajesh Samineni.
  4. Avatar
    3409 2017-01-17 16:50:53
    Muy bueno..y sencillo de aplicar

Your reply