timeout when telnetting to port 25
Hi,
I have this problem, when telnetting on my own machine to localhost 25 it works when I try it from another host nada I ran tcpdump -s 1492 port 25 , when telnetting i dont get any results. (externally to my machine) I flushed all my iptables, even put logging on in my iptables for all connections towards port 25... and dont get any attempts/loggings when telnetting to port 25... any idea's ? I use exim4 but I checked the config and can't find any probs there + thats apllication layer, I definately seem to have a problem in a lower layer... thx for helping me out |
i'd assume that exim is only listening on loopback or something... do you have a local_interfaces directive in your exim.conf? can you connect to the external ip address from the machine itself? that would connect to the interface but bypass any other networking.
|
Hi,
I've tried the following : exim4 -bh 127.0.0.1 : 220 mydomain.com ESMTP Exim 4.50 Sun, 04 Mar 2007 16:47:59 +0100 --------- when I do exim4 -bh mywanip I get : >>> host in hosts_connection_nolog? no (option unset) >>> host in host_lookup? yes (matched "*") >>> looking up host name for 195.207.150.236 >>> IP address lookup yielded mydomain.com but I dont get the exim prompt... So I think you're right :-) ---- Any idea where I have to config this please ? my exim4 seems to have 60 config files :-/ thx |
Once you figure out the config, check your netstat table.
Run Code:
# netstat -ltn |
netstat -ltn
Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN tcp 0 0 mywanip:53 0.0.0.0:* LISTEN tcp 0 0 mywanip:53 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:8021 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN tcp6 0 0 :::8022 :::* LISTEN tcp6 0 0 :::25 :::* LISTEN tcp6 0 0 ::1:953 :::* LISTEN any idea what the tcp6 is ? ipv6 ??? I remember commenting out in /etc/host following lines # 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 Cause I tought i didn't need them as I dont do ipv6, is that ok ? |
I ran dpkg --reconfigure exim4 ...
Somewhere he asked me to enter the ip's that should listen on port 25. so I entered my 2 wan ip's separated by a : colon... i restarted the exim4 again and now I get an exim prompt when doing : exim4 -bf wanip 220 mydomain.com ESMTP Exim 4.50 Sun, 04 Mar 2007 17:15:17 +0100 it works for both my wanip's + localhost... but when I try to telnet externally to my ip :-/ it still doesnt work netstat shows : tcp 0 0 wanip1:25 0.0.0.0:* LISTEN tcp 0 0 wanip2.235:25 0.0.0.0:* LISTEN I'm stuck... |
found the problem, my bloody isp blocked port 25 from my dsl :p ...
only have 1 thing to say, when tcpdump port 25 doesnt get a packet, some router/firewall BEFORE you're machine is DROPPING the packet :-) thx all for yar help |
All times are GMT -5. The time now is 03:19 PM. |