Mail fails to be sent via sendmail from a server with Relay Denied despite a relay host server being configured in sendmail

(Doc ID 2310104.1)

Last updated on SEPTEMBER 26, 2017

Applies to:

Linux OS - Version Oracle Linux 6.2 and later
Information in this document applies to any platform.

Symptoms

Despite sendmail being updated with the correct relay host, sendmail still fails to send mails, with the "Relay access denied" error seen in the system's logs as follows:

Aug 31 11:01:53 localhost sendmail[359002]: v7VCs0Fq007813: to=<mail@test.com>, ctladdr=<root@localhost> (0/0), delay=02:07:53, xdelay=00:00:04
, mailer=relay, pri=510530, relay=smtp.relay.host. [10.x.x.x], dsn=4.7.1, stat=Deferred: 454 4.7.1 <mail@test.com>: Relay access denied


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