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

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 05-25-2007, 09:38 AM
Starter Member
 
Posts: 2
Default Multiple domains enable DNS one zimbra server behind NAT

I have 5 different valid domains domainonline.com, domain.com, domain.net, domain.org & localhost.localdomain. I have one installation of zimbra on internet behind a NAT. So I have an internal IP (192.x.x.x) for the box on which am running zimbra & an internal IP of the NAT box (which acts a namesserver) & an External IP (x.x.x.x) for the NAT box (ISP provided). When I configured the box with zimbra initially, I had configured domain localhost.localdomain, as then the domain names where under processing. I could send the mails from zimbra to internet (the BOX then a valid MX record for the hostname) but could not receive any mail. This I could understand. But now I have got all domain names, valid MX & A record for all the domains & all of the domain's A record point to the HOST my external IP (x.x.x.x). Do I need to change my hostmachine name? If yes out of all domains which one should be the name? & why? I did change the hostname of the box using zmsetservername to domainonline.com. I could now send mails to internet, cannot receive nor could I send mail to any other domain (other domains in zimbra) in zimbra worked.

query to MX record for all domains return me something like this & all of them are handled by the same box
[$]# host -t mx domainonline.com
domainonline.com mail is handled by 10 x.x.x.x.

my hosts file looks something like this, what should I add for each of my external domain in the hosts file. There is one thing which I observed, if I have "enable DNS" checked & my service hostname is localhost.localdomain, in zimbra adminitration UI, external mail do get delivered but all internal zimbra email do not (meaning emails from domainonline.com to domain.com does not get delivered). But when I update the host service name using zmsetservername to say domainonline.com, nothing works meaning, I cant send external/internal emails, postfix log is clean, postfix log doesnot show me any issue. Is there any way I can all debug log of postfix & also if its possible to set the Javamail debug on. But I do get a Read Timeout Error in zimbra.log (Javamail error)

# Contents of my /etc/hosts file
127.0.0.1 localhost.localdomain localhost
internal IP localhost.localdomain localhost (I did add a mail entry with my domainonline.com pointing to my internal IP 192.x.x.x but tht didnt help either)
# internal IP domainonline.com mail (this is removed)

The zimbra box is not a name server it uses the NAT as DNS server & /etc/resolv.conf has a valid nameserver entry which is the NAT box internal IP (192.x.x.x). Precisely I want enable DNS checked & both internal & external mail should work for all domains & I should be able to receive mails in all domains.

Any suggestions?
Reply With Quote
  #2 (permalink)  
Old 05-25-2007, 09:59 AM
Zimbra Consultant & Moderator
 
Posts: 19,641
Default

Welcome to the forums.

Zimbra needs valid A & MX records in order to be able to deliver mail, pick any one of your domains e.g. domainonline.com set-up the correct records and modify your hosts file for the LAN IP and you should be OK to send and receive email fro all your domains. I have exactly that set-up for a couple of domains and only one is listed in my local DNS server (both domains in external DNS) and both domains send & receive OK.

[edit]In fact you hosts file format should be something like this :
Code:
192.168.x.x mail.domainonline.com mail
where mail is the hostname and mail.domain.com is the FQDN of your server.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 06-07-2007, 08:15 AM
Starter Member
 
Posts: 2
Default

Hey Bill,

That did the magic. There was also an issue on the NAT configuration, the hostname was not properly pointing to the right name of the zimbra box though the IP did, Once I updated the hostname with proper FQDN, its all smooth.

Thanks for the help & really appreciate it!.

Ganesh
Reply With Quote
  #4 (permalink)  
Old 06-07-2007, 08:19 AM
Zimbra Consultant & Moderator
 
Posts: 19,641
Default

Glad you've fixed it.
__________________
Regards


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.