At home is a Mac Lion Server running a mail server. I have a VPS thats used as relay for incoming mail, to prevent problems when my home server might go down. Because my ISP sometimes blocks port 25, I'd like to use a different port for my incoming mail (from my VPS to my home server).
I set everything up on port 26 and changes the port forwarding settings in my router (AirPort Extreme), but somehow my VPS cannot connect.
My home server: Mac OS X Lion Server 10.7.1
My VPS: CentOS 5.0 with DirectAdmin 1.39.2
What's working:
- Telnet-ing from a client in my home network to the home server via it's internal IP on port 25 and 26;
- Telnet-ing from a client in my home network to the home server via it's external host name on port 25 and 26;
- Portscan on port 25 and 26 (shows that the server is responding);
- Telnet-ing from someone else's VPS to the home server via it's external host name on port 25 and 26;
- Telnet-ing from my own VPS to the home server via it's external host name on port 25 only.
What isn't working:
- Telnet-ing from my own VPS to the home server via it's external host name on port 26.
What could it be?
- Listening port on the home server: nope, I can connect to port 26 from a local client or another VPS;
- Firewall on the home server: no, not turned on and the same as above;
- Port forwarding on the router: no, I can connect from another VPS and the portscan shows a response;
- Connection between the home server and the VPS: no, other connections (like on port 25 or a simple ping) do work.
- Firewall on the VPS: I'm not sure, but even when iptables is turned off I can't telnet to port 26, so I guess it's not the firewall.
Examples:
On a local client:
$ telnet 10.0.1.11 26
Trying 10.0.1.11...
Connected to home.removed.info.
[SMTP connection]
$ telnet 82.74.112.32 26
Trying 82.74.112.32...
Connected to removed.dynamic.ziggo.nl.
[SMTP connection]
On my VPS:
# telnet home.removed.info 25
Trying 82.74.112.32...
Connected to home.removed.info.
[SMTP connection]
# telnet home.removed.info 26
Trying 82.74.112.32...
telnet: connect to address 82.74.112.32: No route to host
On the other VPS:
$ telnet home.removed.info 26
Trying 82.74.112.32...
Connected to home.removed.info.
[SMTP connection]
iptables config on my own VPS (that can't connect on port 26):
# iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
traceroute
to 82.74.112.32. The ICMP responses from that address are a bit odd. That's where the problem lies.