Sendmail Service fails with "daemon MTA-v6: problem creating SMTP socket" Error in /var/log/maillog (Doc ID 2139753.1)

Last updated on JUNE 21, 2017

Applies to:

Linux OS - Version Oracle Linux 5.0 and later
Linux x86-64

Symptoms

Sending mail using mailx command fails.

Errors in /var/log/messages:

May 13 08:57:10 <hostname> sm-msp-queue[60332]: u4915XVM122697: to=root, delay=4+12:51:37, xdelay=00:00:00, mailer=relay, pri=9931519, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

Sendmail service status shows:

# /etc/init.d/sendmail status
sendmail dead but subsys locked

/var/log/maillog shows the following error when we try to restart the sendmail service:

May 13 10:08:07 <hostname> sendmail[35176]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA-v6: cannot bind: Cannot assign requested address
May 13 10:08:07 <hostname> sendmail[35176]: daemon MTA-v6: problem creating SMTP socket

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms