all groups > iis smtp nntp > october 2007 >
You're in the

iis smtp nntp

group:

Unable to Relay Error


Unable to Relay Error Sam
10/27/2007 4:21:00 PM
iis smtp nntp:
Hi,

We have just upgraded our ASP.NET application from framework version 1.1 to
2.0 running on Windows Server 2003. Everything seems to be working fine
except email notifications. The way we upgraded was that we created a new
folder for the application on the web server and stopped the website and
pointed it to the new folder. We also set the framework to 2.0.

Even though all the settings of the local smtp server seem to be correct,
I'm getting the following error from the simple test SMTP page we have
created for email testing purposes.

Unable to send to all recipients.
Mailbox unavailable. The server response was: 5.7.1 Unable to relay for
myYahooAddress@yahoo.com
at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender,
MailAddressCollection recipients, String deliveryNotify,
SmtpFailedRecipientException& exception) at
System.Net.Mail.SmtpClient.Send(MailMessage message) at
iBIS_NET.testmail.Page_Load(Object sender, EventArgs e)
System

By the way, I get the same error if I try to send an email to an internal
email address. So it's not an issue with sending emails outside of the domain.

Also when I telnet into the web server to send an email using SMTP commands,
I get Unable to Relay message. This clearly seems to be an SMTP server
configuration issue rather than ASP.NET code issue but I'm hoping that
someone else had a similar experience and hopefully can give me some pointers
here. Obviously, everything was working perfectly before the upgrade and we
changed none of the settings on the web site in IIS or the network itself.
The only thing changed is the new upgraded code and its new folder on the
server.

Re: Unable to Relay Error Sanford Whiteman
10/28/2007 12:00:00 AM
[quoted text, click to view]

Outside of what domain? The domains that are not considered Remote are
the Default (Local) and Alias domains in IIS.

At any rate, please post your IIS relay settings. Without this info,
it is impossible to tell whether the settings are functioning
correctly. Note one common error: setting an on-box SMTP client to
connect to the bound IP address isn't the same as connecting to the
loopback address, as it changes your source IP as well (and thus may
match a different relay rule).

--Sandy



------------------------------------
Sanford Whiteman, Chief Technologist
Broadleaf Systems, a division of
Cypress Integrated Systems, Inc.
AddThis Social Bookmark Button