-   Linux - Enterprise (
-   -   Sendmail - External email getting connection refused (

vorpel 08-13-2014 05:20 PM

Sendmail - External email getting connection refused
Hello. I am trying to send an email message outside of my company from my Oracle Linux Database server (REL 5.10). The server is configured to use Sendmail, and I can get email to deliver internally (corp network).

When I try and send an email to Gmail, Yahoo or AT&T (for getting pages on my cellphone) I get a connection refused error.

Here is the output from /var/log/maillog for trying to send to a Gmail address:

Aug 13 15:58:11 blanked_hostname sendmail[18423]: s7DLwBeV018423: from=oracle, size=57, class=0, nrcpts=1, msgid=<201408132158.s7DLwBeV018423@blanked_hostname.xxxx.xx.xx>, relay=oracle@localhost
Aug 13 15:58:12 blanked_hostname sendmail[18428]: s7DLwBd3018428: from=<oracle@blanked_hostname.xxxx.xx.xx>, size=382, class=0, nrcpts=1, msgid=<201408132158.s7DLwBeV018423@blanked_hostname.xxxx.xx.xx>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain []
Aug 13 15:58:12 blanked_hostname sendmail[18423]: s7DLwBeV018423:, ctladdr=oracle (505/507), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30057, relay=[] [], dsn=2.0.0, stat=Sent (s7DLwBd3018428 Message accepted for delivery)
Aug 13 15:58:12 blanked_hostname sendmail[18430]: s7DLwBd3018428: to=<>, ctladdr=<oracle@blanked_hostname.xxxx.xx.xx>, (505/507), delay=00:00:01, xdelay=00:00:00, mailer=esmtp, pri=120382, [], dsn=4.0.0, stat=Deferred: Connection refused by

I am able to connect to Gmail via telnet. Here's the output:

DBNAME 15:14:46 $ telnet 465
Connected to (
Escape character is '^]'.

Connection closed by foreign host.

This is happening on both of my Oracle Linux Database servers, however my AIX 6.1 Database servers are able to send email externally.

Any advice on where to go from here?


ceyx 08-14-2014 02:03 AM


relay=localhost.localdomain []
Seems to me the relay is setup improperly. I could be reading it incorrectly though ?
Check the logs of the successful Database servers, find out what the relay is and copy it into the sendmail config file.

vorpel 08-14-2014 10:45 AM

Thanks for the reply. In comparing the AIX server's with the REL server's, I found that the "Smart relay" on AIX did have the prod mail server listed, while the REL server did not (just "DS").

I've asked the SA to please change this on the development box, bounce sendmail and we'll give it a try.

I really appreciate the pointer of where to look. I was getting fooled by the fact that the email was getting a connection refused by the Gmail smtp server - made me think that it was able to negotiate outside of the local network and that my issue would be elsewhere. Definitely need to learn more about this!


vorpel 08-19-2014 09:03 AM

Issue resolved - SA fixed the relay setup.

Thanks again for the help!

ceyx 08-19-2014 10:57 AM

Glad to be able to help !


All times are GMT -5. The time now is 07:44 AM.