Results 1 to 4 of 4

Thread: Multiple domains enable DNS one zimbra server behind NAT

Hybrid View

  1. #1
    Join Date
    May 2007
    Posts
    2
    Rep Power
    8

    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?

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    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


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    Join Date
    May 2007
    Posts
    2
    Rep Power
    8

    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

  4. #4
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Glad you've fixed it.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

Similar Threads

  1. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 08:46 PM
  2. Can't start Zimbra!
    By zibra in forum Administrators
    Replies: 5
    Last Post: 03-22-2007, 12:34 PM
  3. zmtlsctl give LDAP error
    By sourcehound in forum Administrators
    Replies: 5
    Last Post: 03-11-2007, 04:48 PM
  4. Installation Problem
    By AnilKumarYalla in forum Developers
    Replies: 4
    Last Post: 09-22-2006, 07:19 PM
  5. Replies: 16
    Last Post: 09-07-2006, 07:39 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
  •