Your SMTP server isn't set up to allow relay for localhost. If you open up the properties for the SMTP service from the IIS console, you'll fine the relay list from the Access tab, and you'll need to add 127.0.0.1 to the list of allowed hosts.
Ah...I missed that. Is your site set to run on "Any unassigned IP address"? If not, you'll have to make sure that the IP address the site is on has also been allowed relay permissions by the SMTP service.
You are a genius. You just saved my life. I have spent 2 days trying to figure it out. I had "All unasigned" selected and 127.0.0.1 setup as a relay address. It wouldn't work.
After reading your post, I have set it to the server's IP address, and added the IP address in the relay list, and it worked...
DannyDep
Member
749 Points
316 Posts
Mailbox unavailable. The server response was: 5.7.1 Unable to relay for xxx@xxx.com
Aug 22, 2006 04:32 AM|LINK
I was getting this same message and I have seen the topic:
http://forums.asp.net/thread/1354838.aspx
which I did.
Now when I try to run the control asp:PasswordRecovery, I get a message saying
“Your password has been sent to you”
and it would appear that everything worked successfully.
But the email never gets to the sent to the sending email box.
And there are no messsages in my C:\Inetpub\mailroot\Queue folder nor any of the other mailroot folders.
Any ideas of what is wrong?
Here are my web.config related areas.
<membership defaultProvider="AccessMembershipProvider">
<providers>
<clear/>
<add name="AccessMembershipProvider"
type="Samples.AccessProviders.AccessMembershipProvider, AccessProviders"
connectionStringName="AccessFileName"
enablePasswordRetrieval="true"
enablePasswordReset="true"
requiresUniqueEmail="true"
requiresQuestionAndAnswer="false"
minRequiredPasswordLength="1"
minRequiredNonalphanumericCharacters="0"
applicationName="/DansHP"
passwordFormat="Encrypted"/>
</providers>
</membership>
……………………………………….
<system.net>
<mailSettings>
<smtp from=DansFromEmail@dan.com>
<network host="localhost" password="" userName="" />
</smtp>
</mailSettings>
</system.net>
Xanderno
Contributor
6040 Points
1200 Posts
Re: Mailbox unavailable. The server response was: 5.7.1 Unable to relay for xxx@xxx.com
Aug 22, 2006 02:28 PM|LINK
Hope this helps,
Xander
DannyDep
Member
749 Points
316 Posts
Re: Mailbox unavailable. The server response was: 5.7.1 Unable to relay for xxx@xxx.com
Aug 22, 2006 06:08 PM|LINK
Hi Xander,
Yes, I mentioned that I had seen the link and in there are the requirements to grant 127.0.0.1 access, which I have done.
http://codebetter.com/blogs/peter.van.ooijen/archive/2006/04/05/142331.aspx
I'm sure it is something else with SMTP that I also need to do.
But what?
thx,
ciao, Dan
Xanderno
Contributor
6040 Points
1200 Posts
Re: Mailbox unavailable. The server response was: 5.7.1 Unable to relay for xxx@xxx.com
Aug 22, 2006 06:24 PM|LINK
Ah...I missed that. Is your site set to run on "Any unassigned IP address"? If not, you'll have to make sure that the IP address the site is on has also been allowed relay permissions by the SMTP service.
DannyDep
Member
749 Points
316 Posts
Re: Mailbox unavailable. The server response was: 5.7.1 Unable to relay for xxx@xxx.com
Aug 22, 2006 07:13 PM|LINK
Hi Xanderno,
I'm testing within VWD on my local PC which runs under XP Pro.
I tried googling about "Any unassigned IP address" so I could try to understand your response but I'm not familiar with what you're saying.
Since I'm running this from localhost, what other IP address do I have to add to the allowed relay permissions?
I'm confused. [*-)]
thx,
ciao, Dan
DannyDep
Member
749 Points
316 Posts
Re: Mailbox unavailable. The server response was: 5.7.1 Unable to relay for xxx@xxx.com
Aug 23, 2006 06:35 PM|LINK
OK.
This was apparently working after applying the IIS changes referred to in link
http://codebetter.com/blogs/peter.van.ooijen/archive/2006/04/05/142331.aspx
The actual problem was that I was using a SendTo “Yahoo” account and I didn’t have my Bulk messages folder activated.
For whatever reason, Yahoo put this message in the Bulk Folder.
After testing with several other email services I found that the password recovery works just fine and puts the message in the Inbox(s).
stsong
Member
259 Points
56 Posts
Re: Mailbox unavailable. The server response was: 5.7.1 Unable to relay for xxx@xxx.com
Oct 24, 2006 08:59 PM|LINK
Hi,
I am getting this exact error using Exchange server instead of the SMTP server in IIS. Can anybody help?
stsong
Rochak_Singa...
Member
122 Points
28 Posts
Re: Mailbox unavailable. The server response was: 5.7.1 Unable to relay for xxx@xxx.com
Feb 04, 2007 02:47 PM|LINK
Rochak Agrawal
zirmandli
Member
750 Points
110 Posts
Re: Mailbox unavailable. The server response was: 5.7.1 Unable to relay for xxx@xxx.com
Aug 08, 2007 12:28 PM|LINK
Hi
I am facing the same problem.
I am using Network Credentials.
I have already made changes in SMTP server as listed, but didnt succeed.....
Please provide the solution for this problem.
Thanks in Advance.
-- Benazir Mandli
jpchenot
Member
24 Points
46 Posts
Re: Mailbox unavailable. The server response was: 5.7.1 Unable to relay for xxx@xxx.com
Jun 17, 2009 08:12 AM|LINK
Hi Xanderno.
You are a genius. You just saved my life. I have spent 2 days trying to figure it out. I had "All unasigned" selected and 127.0.0.1 setup as a relay address. It wouldn't work.
After reading your post, I have set it to the server's IP address, and added the IP address in the relay list, and it worked...
Thanks again.
Regards,
Jean-Philippe