Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

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!

.SMTPAddressFailedException: 550 5.7.1 Unable to relay

843834Feb 12 2009 — edited Feb 13 2009
Hello,
I am facing a problem while sending an email using java mail apis. I am using a m/s smtp exchange server v 5.0 build 2195 . In smtp server settings , I ve placed a domain [my intra net domain]indiaeng.com in allowed list to relay and restart smtp server. And when I send an email to any invalid email id e.g. ajadhao@abcda.com, java mail api continuously try to send the email to this invalid id, causing the component to eat up loads of cpu , impacting performance of system.
Thread-22 |  Error  sending email:javax.mail.SendFailedException: Invalid Addresses;
  nested exception is:
        com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for ajadhao@abcda.com

javax.mail.SendFailedException: Invalid Addresses;
  nested exception is:
        com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for ajadhao@abcda.com

        at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1294)
        at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:635)
        at javax.mail.Transport.send0(Transport.java:189)
        at javax.mail.Transport.send(Transport.java:118)
        at com.avaya.icm.transcript.Mailer.sendMail(Mailer.java:133)
        at com.avaya.icm.transcript.MailManager.process(MailManager.java:39)
        at com.avaya.icm.transcript.TranscriptManager.processFile(TranscriptManager.java:143)
        at com.avaya.icm.transcript.TranscriptManager.process(TranscriptManager.java:118)
        at com.avaya.icm.transcript.TranscriptManager.run(TranscriptManager.java:87)
Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for ajadhao@indiaeng.com

        at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1145)
When I remove the indiaeng.com domain from smpt allowed list configuration, the java mail api sends it to the invalid email id only once and return . It doesnt try to send to the invalid email id again.

The is kind a confusing behavior. Can any one please help me in getting the confusion cleared?
thanks
Ani
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 13 2009
Added on Feb 12 2009
5 comments
8,157 views