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 09-21-2010, 11:59 AM
Member
 
Posts: 14
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?
Reply With Quote
  #2 (permalink)  
Old 09-21-2010, 10:47 PM
Member
 
Posts: 14
Default

Any help please...
Reply With Quote
  #3 (permalink)  
Old 09-23-2010, 12:08 PM
Advanced Member
 
Posts: 192
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.
Reply With Quote
  #4 (permalink)  
Old 09-23-2010, 12:54 PM
Intermediate Member
 
Posts: 21
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
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.