My Oracle Support Banner

Sendmail fails with error "Deferred: Connection refused by [127.0.0.1]" (Doc ID 2670038.1)

Last updated on JULY 09, 2020

Applies to:

Oracle Compute Cloud Service - Version N/A to N/A
Linux OS - Version Oracle Linux 6.0 to Oracle Linux 7.7 [Release OL6 to OL7U7]
Linux x86-64

Symptoms

Sendmail fails while mail sent through localhost instead of DNS

echo "Test" | mailx -v -s "Test Mail" xxxxx.xxxxx@somedomain.com
xxxxx.xxxxxx@somedomain.com... Connecting to [127.0.0.1] via relay...
xxxxx.xxxxxx@somedomain.com... Deferred: Connection refused by [127.0.0.1]           <------ Fails 


echo "Test" | mailx -v -s "Test Mail" -S smtp="smtp-secure.somedomain.com:25" xxxxx.xxxxx@somedomain.com
Resolving host smtp-secure.somedomain.com . . . done.
Connecting to xxx.xxx.xxx.xxx . . . connected.
220 <ID>.somedomain.com ESMTP
>>> HELO <hostname>
250 <ID>.somedomain.com
>>> MAIL FROM:<hostname>
250 sender <hostname> ok
>>> RCPT TO:<xxxxx.xxxxx@somedomain.com>
250 recipient <xxxxx.xxxxx@somedomain.com> ok
>>> DATA
354 go ahead
>>> .
250 ok: Message xxxxxxx accepted
>>> QUIT
221 <ID>.somedomain.com 

Changes

 Server was upgraded from Oracle Linux 5 to Oracle Linux 6

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.