Results 1 to 4 of 4

Thread: No route to host on zimbra

Hybrid View

  1. #1
    Join Date
    Sep 2010
    Location
    Tanzania
    Posts
    25
    Rep Power
    5

    Default No route to host on zimbra

    Hello,

    Am trying to send mail to outside world but i get errors "no route to host" in the logs.

    i can send mail from one zimbra user to another and receive mails from outside(eg. gmail) but i cant send to gmail.

    This server is behind router (NAT)

    Here are the outputs of the following commands.
    DNS
    /etc/bind/named.conf.options
    Code:
    options {
            directory "/var/cache/bind";
    
            // If there is a firewall between you and nameservers you want
            // to talk to, you might need to uncomment the query-source
            // directive below.  Previous versions of BIND always asked
            // questions using port 53, but BIND 8.1 and later use an unprivileged
            // port by default.
    
             query-source address * port 53;
    
            // If your ISP provided one or more IP addresses for stable
            // nameservers, you probably want to use them as forwarders.
            // Uncomment the following block, and insert the addresses replacing
            // the all-0's placeholder.
    
             forwarders {
                    196.45.42.100; 41.221.41.101;
             };
    
            auth-nxdomain no;    # conform to RFC1035
            listen-on-v6 { any; };
    };
    /etc/bind/named.conf.local
    Code:
    //
    // Do any local configuration here
            zone "ardhi.go.tz"  {
                    type master;
                    file "/etc/bind/db.ardhi.go.tz";
            };
    
    // Consider adding the 1918 zones here, if they are not used in your
    // organization
    //include "/etc/bind/zones.rfc1918";
    /etc/bind/db.ardhi.go.tz
    Code:
    ;
    ; BIND data file for ardhi.go.tz
    ;
    $TTL    604800
    @       IN      SOA     mail.ardhi.go.tz. admin.ardhi.go.tz. (
                           20100909         ; Serial
                             604800         ; Refresh
                              86400         ; Retry
                            2419200         ; Expire
                             604800 )       ; Negative Cache TTL
    ;
    @       IN      NS      mail
            IN      MX      10 mail
            IN      A       172.16.16.2
    mail    IN      A       172.16.16.2



    cat /etc/hosts
    Code:
    127.0.0.1       localhost.localdomain   localhost
    172.16.16.2     mail.ardhi.go.tz        mail
    
    # The following lines are desirable for IPv6 capable hosts
    ::1     ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts
    cat /etc/resolv.conf
    Code:
    search mail.ardhi.go.tz
    nameserver 172.16.16.2
    dig ardhi.go.tz mx
    Code:
    ; <<>> DiG 9.4.2-P2.1 <<>> ardhi.go.tz mx
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22607
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
    
    ;; QUESTION SECTION:
    ;ardhi.go.tz.                   IN      MX
    
    ;; ANSWER SECTION:
    ardhi.go.tz.            604800  IN      MX      10 mail.ardhi.go.tz.
    
    ;; AUTHORITY SECTION:
    ardhi.go.tz.            604800  IN      NS      mail.ardhi.go.tz.
    
    ;; ADDITIONAL SECTION:
    mail.ardhi.go.tz.       604800  IN      A       172.16.16.2
    
    ;; Query time: 0 msec
    ;; SERVER: 172.16.16.2#53(172.16.16.2)
    ;; WHEN: Tue Sep 21 21:49:08 2010
    ;; MSG SIZE  rcvd: 80
    dig ardhi.go.tz any
    Code:
    ; <<>> DiG 9.4.2-P2.1 <<>> ardhi.go.tz any
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53316
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1
    
    ;; QUESTION SECTION:
    ;ardhi.go.tz.                   IN      ANY
    
    ;; ANSWER SECTION:
    ardhi.go.tz.            604800  IN      SOA     mail.ardhi.go.tz. admin.ardhi.go.tz. 20100909 604800 86400 2419200 604800
    ardhi.go.tz.            604800  IN      NS      mail.ardhi.go.tz.
    ardhi.go.tz.            604800  IN      MX      10 mail.ardhi.go.tz.
    ardhi.go.tz.            604800  IN      A       172.16.16.2
    
    ;; ADDITIONAL SECTION:
    mail.ardhi.go.tz.       604800  IN      A       172.16.16.2
    
    ;; Query time: 0 msec
    ;; SERVER: 172.16.16.2#53(172.16.16.2)
    ;; WHEN: Tue Sep 21 21:50:21 2010
    ;; MSG SIZE  rcvd: 138
    host `hostname`
    Code:
    mail.ardhi.go.tz has address 172.16.16.2

    What is wrong with my configuration?

  2. #2
    Join Date
    Sep 2010
    Location
    Tanzania
    Posts
    25
    Rep Power
    5

    Default

    Any help please...

  3. #3
    Join Date
    Aug 2009
    Location
    The Hague -- The Netherlands
    Posts
    214
    Rep Power
    6

    Default

    First try to see if you can make an outbound connection at all:
    Code:
    telnet smtp.gmail.com 25
    If no: problem is your firewall or ISP blocking port 25.
    If yes: we'll have to look further...

    Your bind config and hosts file seem OK to me by the way.

  4. #4
    Join Date
    Apr 2010
    Location
    New Zealand
    Posts
    22
    Rep Power
    5

    Default

    "No route to host" is a message from the network stack. It indicates that DNS resolution works fine but trying to access/send traffic to the host fails. This can be the firewall or routing table on the next routing hop.

    If your firewall prevents sending email out, consider using a smarthost which is labeled "Relay MTA for external delivery" in ZCS. This setting is per server in Zimbra Admin UI in the MTA tab.
    Maybe it is also the other way around, that you have a smarthost defined which is unreachable.

    I hope this gets you going!

    /Stefan

Similar Threads

  1. Recover the mail after the crash HDD
    By MrSnaKe in forum Administrators
    Replies: 3
    Last Post: 12-02-2009, 03:38 AM
  2. Zimbra shutdowns every n hours.
    By Andrewb in forum Administrators
    Replies: 13
    Last Post: 08-14-2007, 08:55 AM
  3. dspam logrotate errors
    By michaeln in forum Users
    Replies: 7
    Last Post: 02-19-2007, 11:45 AM
  4. Post instsallation problems
    By Assaf in forum Installation
    Replies: 14
    Last Post: 01-29-2007, 10:38 AM
  5. Zimbra server crashed
    By goetzi in forum Administrators
    Replies: 6
    Last Post: 03-25-2006, 12:00 PM

Posting Permissions

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