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,178 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

Make managing Office 365 email signatures a breeze

Are you using Office 365? Having trouble trying to set up email signatures for your users? Getting stressed out managing multiple signatures? Need an easier way to manage? We have a solution for you, try the most-user friendly and powerful signature management tool on the market.

Question has a verified solution.

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

Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
In this video we show how to create a User Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Mailb…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

911 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now