wattkey
asked on
IIS SMTP sudenly having problems, "The specific error code was 0xC00402C7."
We have an IP restricted relay on our web server, that is suddenly giving us problems when the webforms try to send using it.
We recently checked the "attempt direct delivery before trying smart host" option, that was about a month ago, we may now just be noticing the problems. We did this because one of our clients has an imaging server that would not work with our normal mail server, this option seemed to let it work with our relay. Unchecking this option and rebooting does not seem to fix the problem though.
Rebooting the server seems to make some webforms work, but not others, and once one of the ones that doesn't work is used, everything just seems to sit in "queue" as opposed to going to "badmail"
I've read alot of places that these type errors are ussually DNS problems, but not really sure what I can do different.
on the web/relay server we have a host entry for itself as 192.168.1.XX, along with other servers for firewall issues it can't be its public IP. would changing this to 127.0.0.1 do any differnt?
Any help is appreciated.
We recently checked the "attempt direct delivery before trying smart host" option, that was about a month ago, we may now just be noticing the problems. We did this because one of our clients has an imaging server that would not work with our normal mail server, this option seemed to let it work with our relay. Unchecking this option and rebooting does not seem to fix the problem though.
Rebooting the server seems to make some webforms work, but not others, and once one of the ones that doesn't work is used, everything just seems to sit in "queue" as opposed to going to "badmail"
I've read alot of places that these type errors are ussually DNS problems, but not really sure what I can do different.
on the web/relay server we have a host entry for itself as 192.168.1.XX, along with other servers for firewall issues it can't be its public IP. would changing this to 127.0.0.1 do any differnt?
Any help is appreciated.
bdr file
Unable to deliver this message because the follow error was encountered: "This message is a delivery status notification that cannot be delivered.".
The specific error code was 0xC00402C7.
The message sender was <>.
The message was intended for the following recipients.
info@x.net
form@x.net
----------bdp file contains
<form@x.net>: Recipient address rejected: User unknown in relay recipient table
ASKER
I'll add another thing
After adding *.com, *.net, *.org, etc into remote domains, and allowing relay. I no longer have messages setting int the queue. Forms using
CreateObject("CDO.Message" ), work fine
where forms using
Server.CreateObject("SMTPs vg.Mailer" ), Do not work and go to bad mail with the error messages above.
We host more than a hundred websites so changing all of them isn't really an option
After adding *.com, *.net, *.org, etc into remote domains, and allowing relay. I no longer have messages setting int the queue. Forms using
CreateObject("CDO.Message"
where forms using
Server.CreateObject("SMTPs
We host more than a hundred websites so changing all of them isn't really an option
ASKER
Another clue.
We changed our plan with our mail provider, to split our domain between pop3 and exchange. I think this has something to do with the issue as the forms work fine when they send to my gmail acount. This doesn't really explain why some forms work and others do not though.
Attaching working and non working code.
We changed our plan with our mail provider, to split our domain between pop3 and exchange. I think this has something to do with the issue as the forms work fine when they send to my gmail acount. This doesn't really explain why some forms work and others do not though.
Attaching working and non working code.
------
------ Does not work with our mail service, works when gmail account is listed as "to" address
------
<%
my_from=request("mail-fromName")
my_fromAddress=request("mail-fromaddress")
my_to=request("mail-toName")
my_toAddress=request("mail-toaddress")
my_subject=request("mail-subject")
my_relay=request("mail-relay")
Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
Mailer.RemoteHost = my_relay
Mailer.FromName = my_from
Mailer.FromAddress = my_fromAddress
Mailer.AddRecipient my_to, my_toaddress
Mailer.Subject = my_subject
sBodyText = "The following is feedback from my web site." & vbcrlf & vbcrlf
sBodyText = sBodyText & "Name: " & Request.Form("name") & vbCrLf
sBodyText = sBodyText & "Address: " & Request.Form("address") & vbCrLf
sBodyText = sBodyText & "City: " & Request.Form("city") & vbCrLf
sBodyText = sBodyText & "State: " & Request.Form("state") & vbCrLf
sBodyText = sBodyText & "Zip Code: " & Request.Form("zip") & vbCrLf
sBodyText = sBodyText & "Phone: " & Request.Form("phone") & vbCrLf
sBodyText = sBodyText & "Email: " & Request.Form("email")
sBodyText = sBodyText & vbCrLf & Chr(13) & Chr(10) & Chr(13) & Chr(10)
sBodyText = sBodyText & "Area of Interest: " & Request.Form("area") & vbCrLf
sBodyText = sBodyText & "Comments: " & Request.Form("comments") & vbCrLf
sBodyText = sBodyText & "" & Request.Form("feedback") & vbCrLf
Mailer.BodyText = sBodyText
If Mailer.SendMail then
Msg = "Thank you for your inquiry.<br> A member of our staff will contact you shortly."
Else
MSG = "mail was not sent successfully<br>"
MSG = MSG& mailer.response & "<br>"
End If
response.write MSG
%>
---
----- Does work under all cases
-----
<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Contact request from x.com"
myMail.From="noreply@x.com"
myMail.To="sales@x.com;x@x.net"
'myMail.ReplyTo="sales@x.com"
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
'Name or IP of remote SMTP server
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") _
="x.x.com"
'Server port
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") _
=25
messageBody = "some stuff here"
myMail.TextBody=messageBody
myMail.Configuration.Fields.Update
myMail.Send
set myMail=nothing
%>
Is your domain set to your IP?
For example, if you do a tracert (on a machine not on your network) to your webserver/mail servers (IIS machine) does it show your domain in the tracert?
We had problems for the longest time, and simply made the changes so that reverse DNS worked on the domain.... more and more mail servers are performing reverse DNS to make sure that the mail server sending the mail is a real mail server... its probably the sending name (From name in email) that it is performing a reverse DNS on...
For example, if you do a tracert (on a machine not on your network) to your webserver/mail servers (IIS machine) does it show your domain in the tracert?
We had problems for the longest time, and simply made the changes so that reverse DNS worked on the domain.... more and more mail servers are performing reverse DNS to make sure that the mail server sending the mail is a real mail server... its probably the sending name (From name in email) that it is performing a reverse DNS on...
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER