Can't connect remotely to exim

Ord

Verified User
Joined
Dec 2, 2005
Messages
17
Hi all,

I just moved our DirectAdmin installation from one server to another, following the guide.

Since moving, external servers can't connect to exim to send mail. It works locally, from roundcube I can send messages.

I cannot connect to port 25 via telnet:
Code:
telnet mail.odmtech.com 25
Trying 184.173.182.28...
telnet: connect to address 184.173.182.28: Connection refused

But I can connect locally, telnet localhost 25 works fine.

I have tried turning off the firewall:
Code:
iptables -L
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

There are no error messages in /var/log/exim/mainlog or paniclog, nor in /var/log/messages

I don't know what to look at next?
 
Some followup information:

I can connect to port 587, both locally and remotely.

Locally I can connect to 127.0.0.1, but not to the external IP address on port 25. I can connect to 587 on either address.
 
Ask your hosting provider why it is blocked then. Check netstat to ensure port 25 is open.
 
Thanks,

netstat shows port 25 only listening on the local interface, but 587 on all:

netstat -t --listening --numeric-ports
tcp 0 0 localhost.localdomain:25 *:* LISTEN
tcp 0 0 *:587 *:* LISTEN

I can't find anything in the /etc/exim.conf to show which interfaces it should listen on.
 
fixed, it was a postfix process that was bound to port 25, so exim could only run on 587.
 
Back
Top