ORA-29279 Relay Errors When Using UTL_SMTP to Send Email

(Doc ID 402678.1)

Last updated on AUGUST 28, 2017

Applies to:

PL/SQL - Version 10.2.0.5 and later
Information in this document applies to any platform.
***Checked for relevance on 24th Aug 2017***

Symptoms

Running UTL_MAIL and getting an error as follows:

ORA-29279: SMTP permanent error: 551 <john.doe@anydomain.com>... we do not relay

Where <john.doe@anydomain.com>... is the senders email address.

Or:

ORA-29279: SMTP permanent error: 550 5.7.1 Unable to relay for <john.doe@anydomain.com>
ORA-06512: at "SYS.UTL_SMTP", line 21
ORA-06512: at "SYS.UTL_SMTP", line 99
ORA-06512: at "SYS.UTL_SMTP", line 241

 Or:

RCPT TO:xyz@usa.abc.com
DATA
550 5.7.1 Unable to relay for john.doe@anydomain.com
554 5.5.2 No valid recipients

 Or:

javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
javax.mail.SendFailedException: 550 5.7.1 <firstname.lastname@oracle.com>... Relaying denied

Or:

javax.mail.SendFailedException: 550 5.7.1 Unable to relay for
<email address>

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