Solved

Getting com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1  when trying to send email from java program

Posted on 2011-09-06
2
2,236 Views
Last Modified: 2012-05-12
Hi,

Iam trying to send an email and iam using Exchange server to transport emails internally. Iam able to telnet to the exchange server, but when i execute my program it gives me this exception.

Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for sunil.h@thomsonreuters.com
0
Comment
Question by:ThomsonR
2 Comments
 
LVL 11

Accepted Solution

by:
Marc Dekeyser earned 500 total points
ID: 36493836
Well the unable to relay pretty much means that you have not specified the application server to have relay rights in your exchange.

Excange 2003 setup:
http://forums.kayako.com/threads/how-to-setup-windows-2003-and-exchange-2003-smtp-relaying.12411/

Exchange 2007 setup:
http://blogs.technet.com/b/exchange/archive/2006/12/28/3397620.aspx

Exchange 2010 would e similar to 2007
0
 

Author Closing Comment

by:ThomsonR
ID: 37006424
My exchange configuration was at fault and i got it working by correcting that.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question