?
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
Medium Priority
?
2,373 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 1500 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

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

There are times when we need to generate a report on the inbox rules, where users have set up forwarding externally in their mailbox. In this article, I will be sharing a script I wrote to generate the report in CSV format.
I don't pretend to be an expert at this, but I have found a few things that are useful. I hope that sharing them here will help others, so they will not have to face some rather hard choices. Since I felt this to be a topic of enough importance and…
In this video we show how to create an Address List 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 Organization >> Ad…
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…

719 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