Results 1 to 5 of 5

Thread: DNS problem for local domain delivery

  1. #1
    Join Date
    Feb 2009
    Posts
    10
    Rep Power
    6

    Default DNS problem for local domain delivery

    Hi to all,
    I'm configuring a new Zimbra server for multiple domains. I have some problems with local mail delivery and I cannot understand why it doesn't work. This is the problem:

    I have the domain mydomain.it with MX record pointing to mail.mydomain.it that points to 95.141.44.90. I also have a record of type A for mydomain.it pointing to 158.58.172.147. When I try to send a mail to an address of domain @mydomain.it, Zimbra looks for a record of type A for mydomain.it instead of recordo of type MX. It happens only for this local domain and I enabled the command "Enable DNS Lookup" in administration MTA tab.
    If I uncheck that option, I can deliver the local mail, but I cannot relay to remote domains with same problem.
    This is the log I get in /var/log/maillog:

    6C1D283E4D: to=<mail@mydomain.it>, relay=none, delay=63, delays=0.01/0.01/63/0, dsn=4.4.1, status=deferred (connect to mydomain.it[158.58.172.147]:7025: Connection timed out)

    Where is the wrong setting?

    Thank you very much for your help!

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

    Default

    Quote Originally Posted by LeoBurchi View Post
    Where is the wrong setting?
    How would we know as you've provided no diagnostic information. I'd guess it's a DNS problem, go to the wiki Split DNS article and read what necessary for your DNS then confirm your settings by running all the commands in the 'Verify ......' section of that article - see if your configuration is correct.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    Join Date
    Feb 2009
    Posts
    10
    Rep Power
    6

    Default

    Thank you Phoenix for your answer. I think in my case I don't need a split DNS configuration, because I have no private IP for my Zimbra server. It's a public IP. Am I wrong?
    Here the info I get from the server as suggested in the wiki:

    Code:
    dig blits.it mx
    
    ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6_3.2 <<>> blits.it mx
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16960
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;blits.it.                      IN      MX
    
    ;; ANSWER SECTION:
    blits.it.               34380   IN      MX      10 mail.blits.it.
    
    ;; Query time: 11 msec
    ;; SERVER: 8.8.8.8#53(8.8.8.8)
    ;; WHEN: Tue Sep  4 11:46:03 2012
    ;; MSG SIZE  rcvd: 47
    Code:
    host $(hostname)
    
    mail.blits.it has address 95.141.44.90
    Code:
    cat /etc/hosts
    127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
    ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
    95.141.44.90 mail.blits.it blits.it
    Code:
    cat /etc/resolv.conf
    search blits.it
    nameserver 8.8.8.8
    Code:
     cat /etc/hosts
    127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
    ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
    95.141.44.90 mail.blits.it blits.it
    Thank you again for your help!

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

    Default

    Quote Originally Posted by LeoBurchi View Post
    6C1D283E4D: to=<mail@mydomain.it>, relay=none, delay=63, delays=0.01/0.01/63/0, dsn=4.4.1, status=deferred (connect to mydomain.it[158.58.172.147]:7025: Connection timed out)
    Quote Originally Posted by LeoBurchi View Post
    Thank you Phoenix for your answer. I think in my case I don't need a split DNS configuration, because I have no private IP for my Zimbra server. It's a public IP. Am I wrong?
    I didn't say you needed a Split DNS I said you could use that article to confirm what is needed for DNS and your configuration of DNS.

    Quote Originally Posted by LeoBurchi View Post
    Code:
    Here the info I get from the server as suggested in the wiki:
    
    dig blits.it mx
    
    ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6_3.2 <<>> blits.it mx
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16960
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;blits.it.                      IN      MX
    
    ;; ANSWER SECTION:
    blits.it.               34380   IN      MX      10 mail.blits.it.
    
    ;; Query time: 11 msec
    ;; SERVER: 8.8.8.8#53(8.8.8.8)
    ;; WHEN: Tue Sep  4 11:46:03 2012
    ;; MSG SIZE  rcvd: 47
    Code:
    host $(hostname)
    
    mail.blits.it has address 95.141.44.90
    Code:
    cat /etc/hosts
    127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
    ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
    95.141.44.90 mail.blits.it blits.it
    Code:
    cat /etc/resolv.conf
    search blits.it
    nameserver 8.8.8.8
    Code:
     cat /etc/hosts
    127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
    ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
    95.141.44.90 mail.blits.it blits.it
    Thank you again for your help!
    The first thing to point out is that your hosts file is incorrect, the line for your ZCS server is incorrect - check the required format in the Split DNS article.

    You also appear to have no A record for your ZCS server according to the output you've posted (and you missed one of the dig commands). Take a look at this:

    Code:
    ; <<>> DiG 9.8.3-P2 <<>> @8.8.8.8 blits.it any
    ; (1 server found)
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38572
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 7, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;blits.it.                      IN      ANY
    
    ;; ANSWER SECTION:
    blits.it.               43199   IN      NS      dns3.arubadns.net.
    blits.it.               43199   IN      SOA     dns.technorail.com. hostmaster.blits.it. 1 86400 7200 2592000 3600
    blits.it.               43199   IN      NS      dns2.technorail.com.
    blits.it.               43199   IN      NS      dns.technorail.com.
    blits.it.               43199   IN      NS      dns4.arubadns.cz.
    blits.it.               43199   IN      MX      10 mail.blits.it.
    blits.it.               43199   IN      A       158.58.172.147
    
    ;; Query time: 142 msec
    ;; SERVER: 8.8.8.8#53(8.8.8.8)
    ;; WHEN: Tue Sep  4 12:25:06 2012
    ;; MSG SIZE  rcvd: 222
    See the highlighted text above for the IP address it's picking-up. To fix this you'll need a valid A record and fix your hosts file.

    Code:
    dig @8.8.8.8 blits.it mx
    
    ; <<>> DiG 9.8.3-P2 <<>> @8.8.8.8 blits.it mx
    ; (1 server found)
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32743
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;blits.it.                      IN      MX
    
    ;; ANSWER SECTION:
    blits.it.               43199   IN      MX      10 mail.blits.it.
    
    ;; Query time: 121 msec
    ;; SERVER: 8.8.8.8#53(8.8.8.8)
    ;; WHEN: Tue Sep  4 12:25:22 2012
    ;; MSG SIZE  rcvd: 47
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    Join Date
    Feb 2009
    Posts
    10
    Rep Power
    6

    Default

    Thank you Bill for your help!
    The problem was hosts file and the wrong hostname set during Zimbra install.

    Thank you very much! Now it works perfectly.

Similar Threads

  1. Replies: 0
    Last Post: 07-26-2011, 05:24 AM
  2. DNS problem?: local delivery: status=deferred
    By slacri in forum Administrators
    Replies: 2
    Last Post: 05-23-2010, 03:59 AM
  3. Problem Domain Local
    By antonello74 in forum Administrators
    Replies: 2
    Last Post: 01-21-2010, 05:09 AM
  4. Problem with local delivery
    By sebastianwilk in forum Administrators
    Replies: 2
    Last Post: 12-27-2007, 07:52 PM
  5. Local Delivery LMTP Problem
    By CaptainFiesta in forum Installation
    Replies: 4
    Last Post: 10-04-2005, 09:07 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
  •