Here is the situation:
When I run the following on my local machine, the mail server responds:
$ telnet mail.server.com 2525
Trying <mail.server.com IP>...
Connected to mail.server.com.
Escape character is '^]'.
220-<provider-server-name> ESMTP Exim 4.82 #2 Sun, 05 Apr 2015 11:49:13 -0500
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.
And it responds to my commands.
When I run the same command from the bad server, I get:
$ telnet mail.server.com 2525
Trying <mail.server.com IP>...
Connected to mail.server.com.
Escape character is '^]'.
This text is missing:
220-<provider-server-name.com> ESMTP Exim 4.82 #2 Sun, 05 Apr 2015 11:49:13 -0500
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.
And it doesn't respond to my commands. I cleaned all iptables rules, accepting everything on bad server. Then I tried to setup a blocking rule on port 2525 to check, that maybe something is wrong with iptables.
# /sbin/iptables -A OUTPUT -p tcp --dport 2525 -j DROP
# telnet mail.server.com 2525
Trying <mail.server.com IP>...
It can't connect. So, it's not iptables.
SELinux is off:
# sestatus
SELinux status: disabled
I have no idea, what could be blocking SMTP traffic. It connects to server, but I get no response from it. Admins on SMTP server checked and said, that bad server is not inside it's blacklist.
iptables
. Check your Exim configuration whether the server is allowed to use the SMTP. For relay, you should of course have some kind of authentication, too. – Esa Jokinen Apr 5 '15 at 17:24