sendmailjpkg.sendmail - 550 5.7.1 Unable to relay
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!