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 and later
Information in this document applies to any platform.
***Checked for relevance on 24th Aug 2017***


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.


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


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


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


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


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