Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

sendmailjpkg.sendmail - 550 5.7.1 Unable to relay

user9106065Oct 11 2011 — edited Oct 14 2011
Hi to all,

Oracle 10g database.

We have an application that sends emails (only with one email address), with sendmailjpkg.sendmail,
We've recently installed an exchange 2010 server, and in doing so we've changed the relevant DNS/MX records to point the to new IP address. I changed the new SMTP address in database (in sendmail Java class – props.setProperty (“mail.host”,”NEW SMTP IP”), ...) and everything was ok when we sent email to local domain users, but when database sent to external email users we get this error:

javax.mail.SendFailedException: 550 5.7.1 Unable to relay

I know what is the problem is, exchange required full authenication to send emails outside the domain with JavaMail, attempt at stopping spam…
But I do not know how to create authenticator class, how to put authentications in sendmail Java class or in my procedure where I use sendmailjpkg.sendmail, or anywhere else ?

Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 11 2011
Added on Oct 11 2011
1 comment
513 views