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,273 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Save the day with this special offer from ATEN!

Save 30% on the CV211 using promo code EXPERTS30 now through April 30th. The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Suggested Solutions

This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
In this video we show how to create an email address policy 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 Mail Flow…
how to add IIS SMTP to handle application/Scanner relays into office 365.

752 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