Forums Register Login

SMTPAddressFailedException: 550 5.7.1 Unable to relay

+Pie Number of slices to send: Send
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
I love a good mentalist. And so does this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 8449 times.
Similar Threads
Error in send Mail using Java Mail
cannot send email through Outlook
com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay
Sending Email in java through MS Exchange Server
JavaMail Error...
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 00:03:10.