Results 1 to 3 of 3

Thread: reverse proxy not working

Hybrid View

  1. #1
    Join Date
    Apr 2011
    Posts
    117
    Rep Power
    4

    Default reverse proxy not working

    i setup on dns mail to round-robin between 2 mailbox server's cluster service IP, mail1 & mail2

    but when i logged in to webmail, it goes mail2.mydomain.com from mail.mydomain.com stays at mail.mydomain.com

    Code:
    [zimbra@mta2 ~]$ zmprov gs `zmhostname` | grep -i proxy  
    zimbraImapProxyBindPort: 143
    zimbraImapSSLProxyBindPort: 993
    zimbraMailProxyPort: 80
    zimbraMailSSLProxyClientCertPort: 3443
    zimbraMailSSLProxyPort: 443
    zimbraPop3ProxyBindPort: 110
    zimbraPop3SSLProxyBindPort: 995
    zimbraReverseProxyClientCertMode: off
    zimbraReverseProxyConnectTimeout: 120000ms
    zimbraReverseProxyHttpEnabled: TRUE
    zimbraReverseProxyImapEnabledCapability: ACL
    zimbraReverseProxyImapEnabledCapability: BINARY
    zimbraReverseProxyImapEnabledCapability: CATENATE
    zimbraReverseProxyImapEnabledCapability: CHILDREN
    zimbraReverseProxyImapEnabledCapability: CONDSTORE
    zimbraReverseProxyImapEnabledCapability: ENABLE
    zimbraReverseProxyImapEnabledCapability: ESEARCH
    zimbraReverseProxyImapEnabledCapability: ID
    zimbraReverseProxyImapEnabledCapability: IDLE
    zimbraReverseProxyImapEnabledCapability: IMAP4rev1
    zimbraReverseProxyImapEnabledCapability: LIST-EXTENDED
    zimbraReverseProxyImapEnabledCapability: LITERAL+
    zimbraReverseProxyImapEnabledCapability: MULTIAPPEND
    zimbraReverseProxyImapEnabledCapability: NAMESPACE
    zimbraReverseProxyImapEnabledCapability: QRESYNC
    zimbraReverseProxyImapEnabledCapability: QUOTA
    zimbraReverseProxyImapEnabledCapability: RIGHTS=ektx
    zimbraReverseProxyImapEnabledCapability: SASL-IR
    zimbraReverseProxyImapEnabledCapability: SEARCHRES
    zimbraReverseProxyImapEnabledCapability: UIDPLUS
    zimbraReverseProxyImapEnabledCapability: UNSELECT
    zimbraReverseProxyImapEnabledCapability: WITHIN
    zimbraReverseProxyImapEnabledCapability: ESORT
    zimbraReverseProxyImapEnabledCapability: I18NLEVEL=1
    zimbraReverseProxyImapEnabledCapability: SORT
    zimbraReverseProxyImapEnabledCapability: THREAD=ORDEREDSUBJECT
    zimbraReverseProxyImapExposeVersionOnBanner: FALSE
    zimbraReverseProxyImapSaslGssapiEnabled: FALSE
    zimbraReverseProxyImapSaslPlainEnabled: TRUE
    zimbraReverseProxyImapStartTlsMode: only
    zimbraReverseProxyInactivityTimeout: 1h
    zimbraReverseProxyLogLevel: info
    zimbraReverseProxyLookupTarget: FALSE
    zimbraReverseProxyMailEnabled: TRUE
    zimbraReverseProxyMailMode: http
    zimbraReverseProxyPassErrors: TRUE
    zimbraReverseProxyPop3EnabledCapability: EXPIRE 31 USER
    zimbraReverseProxyPop3EnabledCapability: TOP
    zimbraReverseProxyPop3EnabledCapability: UIDL
    zimbraReverseProxyPop3EnabledCapability: USER
    zimbraReverseProxyPop3EnabledCapability: XOIP
    zimbraReverseProxyPop3ExposeVersionOnBanner: FALSE
    zimbraReverseProxyPop3SaslGssapiEnabled: FALSE
    zimbraReverseProxyPop3SaslPlainEnabled: TRUE
    zimbraReverseProxyPop3StartTlsMode: only
    zimbraReverseProxyRouteLookupTimeout: 15s
    zimbraReverseProxyRouteLookupTimeoutCache: 60s
    zimbraReverseProxyUpstreamPollingTimeout: 1h
    zimbraReverseProxyUpstreamReadTimeout: 60s
    zimbraReverseProxyUpstreamSendTimeout: 60s
    zimbraReverseProxyWorkerConnections: 10240
    zimbraReverseProxyWorkerProcesses: 4
    zimbraServiceEnabled: imapproxy
    zimbraServiceInstalled: imapproxy
    
    [zimbra@mta2 ~]$ zmprov gs `zmhostname` | grep -i zimbraMailReferMode          
    zimbraMailReferMode: wronghost
    
    [zimbra@mta2 ~]$ zmcontrol status
    Host mta2.mydomain.com
    	antispam                Running
    	antivirus               Running
    	imapproxy               Running
    	ldap                    Running
    	memcached               Running
    	mta                     Running
    	snmp                    Running
    	stats                   Running
    	zmconfigd               Running
    
    [zimbra@mta2 ~]$ zmcontrol -v
    Release 7.1.4_GA_2555.RHEL5_64_20120104215751 CentOS5_64 NETWORK edition.
    logs from nginx.log

    note:

    10.xxx.x.87 = mail1.mydomain.com
    10.xxx.x.88 = mail2.mydomain.com

    Code:
    2012/04/06 12:47:40 [info] 9257#0: memcache: 1/1 connections initialized
    2012/04/06 12:47:40 [info] 9258#0: memcache: 1/1 connections initialized
    2012/04/06 12:47:41 [info] 9253#0: *5 zmauth: route handler 10.xxx.x.87:7072 sent route 10.xxx.x.87:80, client: 10.xxx.x.37, server: , request: "POST /service/soap/SyncRequest HTTP/1.1", host: "mail.mydomain.com"
    2012/04/06 12:48:09 [info] 9253#0: *8 zmauth: route handler 10.xxx.x.88:7072 sent route 10.xxx.x.87:80, client: 10.xxx.x.44, server: , request: "POST /service/soap/SyncRequest HTTP/1.1", host: "mail.mydomain.com"
    2012/04/06 12:49:11 [info] 9253#0: *8 client 10.xxx.x.44 closed keepalive connection
    2012/04/06 12:49:43 [info] 9253#0: *11 client 10.xxx.x.37 closed keepalive connection (104: Connection reset by peer)
    2012/04/06 12:51:39 [info] 9253#0: *13 client 10.xxx.x.44 closed keepalive connection
    2012/04/06 12:51:41 [info] 9253#0: *22 client 10.xxx.x.44 closed keepalive connection
    2012/04/06 12:52:48 [info] 9253#0: *24 client 10.xxx.x.37 closed keepalive connection (104: Connection reset by peer)
    2012/04/06 12:55:56 [info] 9253#0: *28 client 10.xxx.x.37 closed keepalive connection (104: Connection reset by peer)
    Last edited by malayo; 04-05-2012 at 11:33 PM.

  2. #2
    Join Date
    Apr 2011
    Posts
    117
    Rep Power
    4

    Default

    solved by setting

    point mail.mydomain.com A record to IP of proxy server

    zimbraMailReferMode: reverse-proxied on mailbox & proxy

    zimbraReverseProxyMailMode: both on proxy to enable http & https proxy

    restart service on mailbox and proxy server

  3. #3
    Join Date
    Jun 2008
    Location
    Minneapolis, MN
    Posts
    112
    Rep Power
    7

    Default

    I ran into a similar issue that was related to each of my server's host file

Similar Threads

  1. Replies: 7
    Last Post: 02-13-2013, 01:36 AM
  2. Active Sync Via Reverse Proxy
    By tbovingdon in forum Mobility
    Replies: 1
    Last Post: 11-23-2011, 05:46 AM
  3. DMZ reverse proxy to LAN zimbra
    By jimmyk in forum Administrators
    Replies: 8
    Last Post: 05-11-2011, 06:10 PM
  4. reverse proxy zimbra
    By ojehle in forum Administrators
    Replies: 3
    Last Post: 03-13-2006, 09:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •