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,111 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:
Geminon earned 500 total points
Comment Utility
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
Comment Utility
My exchange configuration was at fault and i got it working by correcting that.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Utilizing an array to gracefully append to a list of EmailAddresses
Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

762 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

12 Experts available now in Live!

Get 1:1 Help Now