SMTP Cannot Connect

Garcia65

New member
Joined
Mar 3, 2014
Messages
6
I could use some help with this please. I have tried all I know to do. I can send mail from the server to anyone, I cannot receive mail here is the message I get back:

Final-Recipient: rfc822; [email protected]
Action: failed
Status: 4.4.1
Diagnostic-Code: X-Postfix; connect to
mail.thepestteaminc.com[68.234.10.116]:25: No route to host


Thanks for any help it is greatly appreciated.
 
This the exim log, it all seems to be running correctly

Code:
014-03-04 11:01:14 exim 4.76 daemon started: pid=21274, -q15m, listening for SMTP on port 25 (IPv6 and IPv4) port 587 (IPv6 and IPv4)
2014-03-04 11:02:34 1WKrmh-0005Xy-NL Message abandoned: Input read error (Input/output error) while receiving message from root
2014-03-04 11:02:34 1WKrne-0005Y3-Am <= <> R=1WKrmh-0005Xy-NL U=mail P=local S=826 T="Mail failure - system failure" from <> for [email protected]
2014-03-04 11:02:34 1WKrne-0005Y3-Am User 0 set for local_delivery transport is on the never_users list
2014-03-04 11:02:34 1WKrne-0005Y3-Am == [email protected] R=localuser T=local_delivery defer (-29): User 0 set for local_delivery transport is on the never_users list
2014-03-04 11:02:34 1WKrne-0005Y3-Am ** [email protected]: retry timeout exceeded
2014-03-04 11:02:34 1WKrne-0005Y3-Am [email protected]: error ignored
2014-03-04 11:02:34 1WKrne-0005Y3-Am Completed
2014-03-04 11:03:08 socket bind() to port 25 for address (any IPv6) failed: Address already in use: waiting 30s before trying again (9 more tries)
2014-03-04 11:03:38 socket bind() to port 25 for address (any IPv6) failed: Address already in use: waiting 30s before trying again (8 more tries)
2014-03-04 11:04:08 socket bind() to port 25 for address (any IPv6) failed: Address already in use: waiting 30s before trying again (7 more tries)
2014-03-04 11:04:38 socket bind() to port 25 for address (any IPv6) failed: Address already in use: waiting 30s before trying again (6 more tries)
2014-03-04 11:05:08 socket bind() to port 25 for address (any IPv6) failed: Address already in use: waiting 30s before trying again (5 more tries)
2014-03-04 11:05:38 socket bind() to port 25 for address (any IPv6) failed: Address already in use: waiting 30s before trying again (4 more tries)
2014-03-04 11:06:08 socket bind() to port 25 for address (any IPv6) failed: Address already in use: waiting 30s before trying again (3 more tries)
2014-03-04 11:06:38 socket bind() to port 25 for address (any IPv6) failed: Address already in use: waiting 30s before trying again (2 more tries)
2014-03-04 11:07:08 socket bind() to port 25 for address (any IPv6) failed: Address already in use: waiting 30s before trying again (1 more try)
2014-03-04 11:07:38 socket bind() to port 25 for address (any IPv6) failed: Address already in use: daemon abandoned
 
Based on your log, it is not running fine. Notice the failure to bind to port 25 (SMTP) and the "daemon abandoned" that means that exim failed and is not working. Based on your first post, I see a reference to postfix (a different SMTP server). I am guessing that postfix is getting started before exim and postfix isn't configured to work properly in your environment. Remove postfix and allow exim to run correctly.
 
thank for the reply toml, I followed the posts in this thread http://forum.directadmin.com/showthread.php?t=34279 and I also don't have postfix installed on my server at all, it shows no processes related to postfix. The first message was a return message that I got in outlook. I did reinstall dovecot and exim again, reboot the server and no luck there either.
 
If you are still getting those bind errors in your mainlog, what does output of the following command look like:
lsof -P|grep ":25" |grep LISTEN
that should make sure that exim is the process bound to port 25.

To make sure that error isn't just for your ipv6 you should add the following to your exim.conf:
disable_ipv6 = true
and restart exim.

Then see if you are still getting that error. If so send the mainlog that also includes your error.

One more thing I see in your log, is that an email is trying to get delivered to root, which is typically not allowed in the DA setup, for security reasons. You should have your root mail delivered to a real user (see /etc/aliases ).
 
Here is what I have now, I am not getting bounce messages now the SMTP is timing it it won't connect. I changed the etc/aliases to send root email to a real user.

Code:
exim      4441      mail    3u     IPv4      26230                 TCP *:25 (LISTEN)

Code:
2014-03-04 15:38:41 SMTP call from [68.234.10.116] dropped: too many unrecognized commands (last was "")
2014-03-04 15:38:42 socket bind() to port 25 for address (any IPv4) failed: Address already in use: waiting 30s before trying again (8 more tries)
2014-03-04 15:39:02 exim 4.76 daemon started: pid=5600, -q15m, listening for SMTP on port 25 (IPv4) port 587 (IPv4)
2014-03-04 15:43:38 exim 4.76 daemon started: pid=2831, -q15m, listening for SMTP on port 25 (IPv4) port 587 (IPv4)
2014-03-04 15:43:44 1WKwBk-0000ma-AG <= [email protected] U=root P=local S=899 T="SMART error (CurrentPendingSector) detected on host: localhost.localdomain" from <[email protected]> for root
2014-03-04 15:43:44 1WKwBk-0000ma-AG => admin <[email protected]> F=<[email protected]> R=localuser T=local_delivery S=1028
2014-03-04 15:43:44 1WKwBk-0000me-Ej <= [email protected] U=root P=local S=896 T="SMART error (OfflineUncorrectableSector) detected on host: localhost.localdomain" from <[email protected]> for root
2014-03-04 15:43:44 1WKwBk-0000ma-AG Completed
2014-03-04 15:43:44 1WKwBk-0000me-Ej => admin <[email protected]> F=<[email protected]> R=localuser T=local_delivery S=1025
2014-03-04 15:43:44 1WKwBk-0000me-Ej Completed
 
Why is your hostname localhost.localdomain. Do you even have a directadmin license?
 
Why is your hostname localhost.localdomain. Do you even have a directadmin license?

I do it came with the server when I purchased it, I am learning how to do all this on the fly as a matter of necessity. I am not sure what is normal and what is not. The server came to me setup with custombuild and lots of things were configured already.
 
Whoever set it up did not do it right at all. There should of been no postfix and there should be a valid hostname set. Directadmin should be installed on a clean server with nothing installed prior.

You should try:

Code:
service postfix stop
yum remove postfix
cd /usr/local/directadmin/custombuild
./build update
./build update_versions

You should also set a hostname with:

Code:
/usr/local/directadmin/scripts/hostname.sh server.domain.com

Replace server.domain.com with whatever hostname you want based on your domain.
 
Whoever set it up did not do it right at all. There should of been no postfix and there should be a valid hostname set. Directadmin should be installed on a clean server with nothing installed prior.

You should try:

Code:
service postfix stop
yum remove postfix
cd /usr/local/directadmin/custombuild
./build update
./build update_versions

You should also set a hostname with:

Code:
/usr/local/directadmin/scripts/hostname.sh server.domain.com

Replace server.domain.com with whatever hostname you want based on your domain.

Thank you. I have followed the steps below to be certain that postfix wasn't installed and it isn't here is the output.
postfix: unrecognized service


Package(s) postfix available, but not installed.
No Packages marked for removal

I also have the hostname updated as well as the update. I still cannot receive mail from remote sources, it will send and receive local. There isn't much on the mainlog but here is what is there since I rebooted it

Code:
2014-03-06 07:29:11 exim 4.76 daemon started: pid=2806, -q15m, listening for SMTP on port 25 (IPv4) port 587 (IPv4)
2014-03-06 07:29:18 1WLXQM-0000mH-1b <= [email protected] U=root P=local S=965 T="SMART error (CurrentPendingSector) detected on host: server.bryantconsultants.info" from <[email protected]> for root
2014-03-06 07:29:18 1WLXQM-0000mH-1b => admin <[email protected]> F=<[email protected]> R=localuser T=local_delivery S=1110
2014-03-06 07:29:18 1WLXQM-0000mH-1b Completed
2014-03-06 07:29:19 1WLXQM-0000mO-Nd <= [email protected] U=root P=local S=962 T="SMART error (OfflineUncorrectableSector) detected on host: server.bryantconsultants.info" from <[email protected]> for root
2014-03-06 07:29:19 1WLXQM-0000mO-Nd => admin <[email protected]> F=<[email protected]> R=localuser T=local_delivery S=1107
2014-03-06 07:29:19 1WLXQM-0000mO-Nd Completed
 
There is nothing in that logfile to show that any remote server tried to send an email to this server. Do you have ports 25 and 587 opened in your firewall?
 
If you cannot receive email its either a dns problem or your firewall is blocking the ports it needs to communicate on.

You can check if the ports are open to the world on this website http://www.yougetsignal.com/tools/open-ports/

Put in your server ip and the port 25 and 587 and make sure it says open. If the ports are open then it has to do with your dns settings.

You might want to look at: http://site-helper.com/

Especially the dns section: http://www.site-helper.com/dns.html

http://mxtoolbox.com/ is another good site for diagnosing mail routing problems.
 
Back
Top