Hello and sorry for asking again. I telnet'ted the hotmail.com from both port 25 and port 587 when I telnet directly from server or any other location in Istanbul----------engin@xn--hadibakalm-5ub:~$ telnet hotmail.com 25Trying 65.55.72.183...Trying 65.55.72.135...Trying 65.55.72.151...Trying 65.55.72.167...telnet: Unable to connect to remote host: No route to host----------
but when I try to connect over port 587 it gives...----------root@xn--hadibakalm-5ub:~# telnet hotmail.com 587Trying 65.55.72.183...Trying 65.55.72.135...Trying 65.55.72.151...Trying 65.55.72.167...telnet: Unable to connect to remote host: Connection timed out---------- So I followed lots of forums that shows how to forward any outgoing port to another one such as: iptables -t nat -A OUTPUT -p tcp --dport 25 -j DNAT --to-destination 10.138.9.254:587iptables -t nat -A PREROUTING -p tcp --dport 587 -j REDIRECT --to-port 25iptables -t nat -A PREROUTING -p tcp --dport 25 -j REDIRECT --to-port 587iptables -t nat -A OUTPUT -p tcp --dport 25 -j DNAT --to-port 587iptables -t nat -A OUTPUT -p tcp --dport 25 -j DNAT --to-destination xn--hadibakalm-5ub.com:587iptables -t nat -A OUTPUT -p tcp --dport 25 -j DNAT --to-destination 10.138.9.201:587 but none of them changed the port number in the error message I get> (connect to mx2.hotmail.com[65.55.92.184]:25: No route to host) still It writes port 25 any clue? From: eng...@hotmail.com To: postfix-users@postfix.org Subject: RE: "no route to host" error message Date: Fri, 13 Jul 2012 11:14:39 +0000 Hey, thank you all for the quick replays. No, I am on the Metronet network a Turkish ISP. In Turkey the port 25 is also blocked as well. So I set my postfix on port 587. But the strange part of the problem the clients of the mail server could both Pop3 and SMTP successfully but the local machine itself cannot send mail but could Pop3. > Date: Fri, 13 Jul 2012 11:49:50 +0100 > From: dun...@presidium.org > To: h.rei...@thelounge.net > CC: postfix-users@postfix.org > Subject: Re: "no route to host" error message > > > On Fri, 13 Jul 2012, Reindl Harald wrote: > > >> -------------- > >> 679D8120710 611 Fri Jul 13 12:34:05 some_sender@some_domain.tld > >> (connect to mx2.hotmail.com[65.55.92.184]:25: No route to > >> host) > >> some_receip...@hotmail.com > >> -------------- > > > this is clearly a network-layer problem > > what says "ping 65.55.92.184" from this machine and other ones? > > Hi, > > You're not on a RedStation dedicated server are you, per-chance? The > reason I ask, is that I encountered this exact error yesterday and > investigating into it with a tcpdump, showed RedStation's gateway was > filtering SMTP connections, forcing it through their own (exceptionly > poorly configured) relay. The response I was getting back when > attempting outbound port 25 connections was 'no route to host'. > > This is very annoying as I've had to smarthost mail through a different > box on port 587, to avoid their relay! Was not made aware of this before > purchasing the server and it's not in their T&Cs. > > Cheers, > Duncan.