I am getting “Mailbox unavailable. The server response was: 5.7.1 Unable to relay for abc@xyz.com” when I try to send the mail using ASP.NET. The site is deployed on IIS7, Windows 2008 server.
The website was working fine on IIS6 and Windows 2003 Server. I deployed it on IIS7, 2008 it has started giving me this error.
Has anybody experienced this before?
Aahh got it… I got it working 🙂
Thanks Christopher, your suggesion is correct.
But, finding “Default SMTP Virtual Server” was tricky 😉
Even if you use IIS7 to deploy your web site, you have to open IIS6 Manager to configure SMTP server (why?).
I configured SMTP server as follows to make things work:
the Web server instead of “All
Unassigned”.
button, this will open Relay
Restrictions dialog.
loopback IP address i.e 127.0.0.1
and IP address of the Web server, so that they can pass/relay emails through the SMTP server.