Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-05-2008, 04:17 PM
Member
 
Posts: 10
Default [SOLVED] Exchange and Zimbra behind NAT

We have Zimbra 5.05_GA on Ubuntu 6.06 LTS running great on our network with Exchange Server 2007. One problem that I am having is that when I send email from Zimbra to Exchange account, the email gets deferred.
Zimbra local ip : 192.168.0.111
Exchange local ip: 192.168.0.118
I have already setup internal dns server.

The error under /var/log/zimbra.log shows
Jun 5 15:59:09 localhost postfix/smtp[28543]: 609964582C1: to=, relay=none, delay=19560, delays=19522/0/38/0, dsn=4.4.1, status=deferred (connect to mail.exchangedomain.org[xx.xx.xx.xx]: Connection timed out)

xx.xx.xx.xx = external ip
dig mail.exchangedomain.org gives external ip.
I also updated /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.0.111 mail.zimbradomain.org
192.168.0.118 mail.exchangedomain.org

I don't want to disable the dns lookups as we need to send external emails.
I would appreciate if someone can point me in the right direction.
Thank you in advance.

Last edited by bryan08; 06-05-2008 at 05:24 PM..
Reply With Quote
  #2 (permalink)  
Old 06-05-2008, 10:29 PM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

Have you set-up a Split Domain for this configuration? You will need that for correct routing of email.

You also need to remove the entry in your /etc/hosts file for the exchange server, it's not needed.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 06-06-2008, 06:32 AM
Member
 
Posts: 10
Default

Thank you for your prompt response. I think I forgot to say this. The Exchange and Zimbra has its own external ip web address, MX and A values. We are not trying to make Zimbra as our primary or secondary email server. Some of our users need to able to email users on exchange server.
$ zmprov md exchangedomain.org zimbraMailCatchAllAddress @exchangedomain.org
ERROR: account.NO_SUCH_DOMAIN (no_such_domain: exchangedomain.org)
Reply With Quote
  #4 (permalink)  
Old 06-06-2008, 07:24 AM
Outstanding Member
 
Posts: 684
Default

Adding the LAN IP's of the servers to the other one's HOSTS file may solve your problem After doing so, each machine will resolve to the other using the entry in the HOSTS file and not the DNS server. By default, most operating systems will check the HOSTS file before checking their assigned DNS server. This can be changed of course but it is usually the default configuration.
Reply With Quote
  #5 (permalink)  
Old 06-06-2008, 09:37 AM
Member
 
Posts: 10
Default

My /etc/hosts file looks like this
127.0.0.1 localhost.localdomain localhost
192.168.0.111 mail.zimbradomain.org mail
192.168.0.118 mail.exchangedomain.org

/etc/host.conf
order hosts,bind
multi on

I am still getting this error message under /var/log/syslog
Jun 5 15:59:09 localhost postfix/smtp[28543]: 609964582C1: to=, relay=none, delay=19560, delays=19522/0/38/0, dsn=4.4.1, status=deferred (connect to mail.exchangedomain.org[xx.xx.xx.xx]: Connection timed out)
where xx.xx.xx.xx = external ip
Also, hosts file is updated on the exchange server.
192.168.0.111 mail.zimbradomain.org
Reply With Quote
  #6 (permalink)  
Old 06-06-2008, 11:19 AM
Outstanding Member
 
Posts: 684
Default

If you ping mail.exchangedomain.org on the machine with the error what IP does it ping.
Reply With Quote
  #7 (permalink)  
Old 06-06-2008, 11:27 AM
Member
 
Posts: 10
Default

It pings with external ip and there is no reply.
Reply With Quote
  #8 (permalink)  
Old 06-06-2008, 11:53 AM
Outstanding Member
 
Posts: 684
Default

It should be resolving to what is in the HOSTS file. Very odd. I know in Windows there is no need to reboot after changing the HOSTS file. Don't know about Linux.
Reply With Quote
  #9 (permalink)  
Old 06-06-2008, 12:21 PM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

Quote:
Originally Posted by bryan08 View Post
It pings with external ip and there is no reply.
That would explain your problem. From the ZImbra server try a dig:

Code:
dig exchangedomain.org mx
dig exchangedomain.org any
and see what response you get.
__________________
Regards


Bill

Last edited by phoenix; 06-06-2008 at 11:04 PM..
Reply With Quote
  #10 (permalink)  
Old 06-06-2008, 12:32 PM
Member
 
Posts: 10
Default

I get:
dig: '.exchangedomain.org' is not a legal name (empty label)

I don't understand why it's not taking the local ip from hosts file. Do I have to edit route file or anything? Appreciate your help, Bill.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.