Could not send mails to external domains like yahoo,gmail from windows 2003 mail server
I am trying to programmatically send an email to end users based on certain bahaviours (such as forgotton password, etc). But, I am getting the error:
Mailbox unavailable. The server response was: 5.7.1 Unable to relay for (email address).
I have done some reading about this and it seems that most people are able to fix this error by doing the following:
1) Right click on Default SMTP Virtual Server and select properties 2) Select the access tab 3) Click the Relay button 4) Click the Add button 5) Type in your ip address
I have tried this but am still getting the same error. . does anybody have any idea what else i might be doing wrong??
In mail server i have created one domain and also i created some mail accounts inside that domain .in MS-Outlook all mails are sending properly but programatically it displays above error..!.In smtp virtual server i created remote domain also.
gurram ramu
Member
2 Points
3 Posts
Mailbox unavailable. The server response was: 5.7.1 Unable to relay
Feb 23, 2012 05:27 AM|LINK
hi....good morning
Could not send mails to external domains like yahoo,gmail from windows 2003 mail server
I am trying to programmatically send an email to end users based on certain bahaviours (such as forgotton password, etc). But, I am getting the error:
.
Mailbox unavailable. The server response was: 5.7.1 Unable to relay for (email address).
I have done some reading about this and it seems that most people are able to fix this error by doing the following:
1) Right click on Default SMTP Virtual Server and select properties
2) Select the access tab
3) Click the Relay button
4) Click the Add button
5) Type in your ip address
I have tried this but am still getting the same error.
does anybody have any idea what else i might be doing wrong??
Thanks in Advance.
cnranasinghe
Star
8899 Points
1800 Posts
Re: Mailbox unavailable. The server response was: 5.7.1 Unable to relay
Feb 23, 2012 06:59 AM|LINK
Check your from email is valid (valid domain).
gurram ramu
Member
2 Points
3 Posts
Re: Mailbox unavailable. The server response was: 5.7.1 Unable to relay
Feb 23, 2012 07:35 AM|LINK
Thanks for responce..
In mail server i have created one domain and also i created some mail accounts inside that domain .in MS-Outlook all mails are sending properly but programatically it displays above error..!.In smtp virtual server i created remote domain also.
vinay13mar
Star
7788 Points
1632 Posts
Re: Mailbox unavailable. The server response was: 5.7.1 Unable to relay
Feb 23, 2012 07:43 AM|LINK
hi check the link
http://forums.devshed.com/net-development-87/error-mailbox-unavailable-the-server-response-was-5-7-1t-315971.html
V.K.Singh
cnranasinghe
Star
8899 Points
1800 Posts
Re: Mailbox unavailable. The server response was: 5.7.1 Unable to relay
Feb 23, 2012 08:00 AM|LINK
U have to make sure that your coding & email configurations are correct. if so your IP might be blocked as spamming.
http://www.webmaster-toolkit.com/spam-block-list-checker.shtml
http://www.spamhaus.org/sbl/
if IP blocked u have wait serveral hours/days...to unblock.
dinakaran
Member
625 Points
216 Posts
Re: Mailbox unavailable. The server response was: 5.7.1 Unable to relay for (email address).
Feb 23, 2012 08:01 AM|LINK
Hi,
Try this functions
try { // Create a new blank MailMessage MailMessage email = new MailMessage(); email.BodyFormat = MailFormat.Html; email.From = "from@mydomain.com"; email.To = "to@mydomain.com"; email.Subject = "test"; email.Body = "bodycontents"; // Set the SMTP server and send the email SmtpMail.SmtpServer = "localhost"; SmtpMail.Send (email); lblMessage.Text = "Your email has been sent"; } catch(Exception ex) { lblMessage.Text = ex.ToString(); }