Zimbra with non 80 port ( Zimbra with 7071 and 8086 port and Apache web server on 80 port)

Zimbra with non 80 port ( Zimbra with 7071 and 8086 port and Apache web server on 80 port)

Introduction –

We want to use Zimbra CS for email server management and Apache with PHP for Web hosting. But tomcat which is used by Zimbra CS for Admin panel by default on 7071 port and webmail on 80 port. In our case we want Zimbra CS admin panel on same 7071 port and mail.domain.com which on 80 port to some other random port say 8086 port.

* Please follow this step to customize the Zimbra CS

1] First you will have to edit server.xml and server.xml.in file which the configuration file for tomcat. You will have to define a port on which you want to listen a tomcat. So in my case the path for the file is….

[root@indiangnu.org# vi /opt/zimbra/tomcat/conf/server.xml

[root@indiangnu.org# vi /opt/zimbra/tomcat/conf/server.xml.in

<Service name=”Catalina”>
<!– user services connector, no SSL –>
<Connector port=”8086
acceptCount=”1024″ URIEncoding=”UTF-8″
enableLookups=”false” redirectPort=”443″
noCompressionUserAgents=”.*MSIE 6.*”
maxThreads=”100″ minSpareThreads=”100″ maxSpareThreads=”100″/>
<!– HTTPEND –>
<!– user services connector, SSL –>
<Connector port=”8086
acceptCount=”1024″ URIEncoding=”UTF-8″
clientAuth=”false” sslProtocol=”TLS”
keystoreFile=”/opt/zimbra/tomcat/conf/keystore” keystorePass=”zimbra”/>



2] After making changes to above mentioned two file you can now move to next step in that we will edit a service.web.xml.in file . In this file also you will have to define port number same as mentioned in above file.

[root@indiangnu.org# vi /opt/zimbra/tomcat/conf/service.web.xml.in


<param-value>%%zimbraMailPort%%, %%zimbraMailSSLPort%%, 7070, 7443, 7071, 8086</param-value>


3] Now you can simply restrart your zimbra. and you will now be able to run zimbra on other port i.e 8086 in my case and Admin Panel on 7071.

Zimbra Webmail –


** Note – use apache for redirecting http://mail.your-domain-name.com to



Admin Panel –


4] If you get an below error screen after loading zimbra page you can resolved it by following NO.2 step.

Error after entering username and password –
An unknown application error has occurred. Please correct any
errors and retry. If the problem persists, please contact your
System Aministrator. (service.FAILURE)



Similar Posts:

2 Replies to “Zimbra with non 80 port ( Zimbra with 7071 and 8086 port and Apache web server on 80 port)”

Leave a Reply

Your email address will not be published.