• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SMTPAddressFailedException: 550 5.7.1 Unable to relay

 
ani jadhao
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic