Tuesday, 20 January 2009

SMTP problem with BizTalk Server ( 550 5.7.1 Unable to relay)

The server rejected one or more recipient addresses. The server response was: 550 5.7.1 Unable to relay for name@xxxxxx.com

Today I am working on SMTP adapter to send an email from BizTalk. My Configuration Settings looks fine as mentioned below.
SMTP.EmailBodyTextCharset = "UTF-8"
SMTP.Subject =” Some subject..”
SMTP.EmailBodyText =” my email content “
SMTP.From =”myName@xxxxx.com”
SMTP.SMTPHost=”localhost”
SMTP.SMTPAuthenticate =2

However BizTalk generated an Error as follows
The server rejected one or more recipient addresses.The server response was: 550 5.7.1 Unable to relay for
name@xxxxxx.com
I tried a lot to resolve this issue from biztalk side but I couldn’t. Finally I found that it is not something to do at Biztalk level. It’s related to configuration settings at IIS level.

Resolve :
Start -> All Programs --> Administrative Tools --> Internet Information Services
Select Default SMTP Virtual Server -> properties -> General Tab
Pull the IP address of your local machine under IP Address.
Note: Assuming you have installed SMTP Service ( control panel-add remove windows component – IIS Detail – SMTP service )


Click Access Tab and click Relay Button -->click Add -> Enter your IP address.

Select Ok and you can see the granted permission.

Until you have granted access to your local machine/IP running an application on the same machine you will encounter the error as mentioned earlier. (SMTP error 550 5.7.1 Unable to relay for)

Also change your code for SMTPHost from localhost to IP address
SMTP.SMTPHost=”9.184.19.52”

You can reach me@ raj.webjunky@yahoo.com

No comments:

Post a Comment