| Author |
Send via ASP Page w CDONTS - Mail Stuck In SMTP Queue - Please help!
|
|
| thegrind 2005-11-09, 2:49 am |
| Hey all...
I am losing my mind with this one. I had a simple ASP page with a
CDONTS script that would send a message to a friend. It worked perfect
for months. It suddenly stopped working. The actual script works
perfect (as far as creating the message) and no error msgs appear to
the user on the website. The message is being created but its being
held in the QUEUE folder and then eventually brought into the BADMAIL
folder a few days later.
I am completely out of ideas on how to troubleshoot. I don't have a
clue as to what to look for next.
Here's where I am at:
Server: Windows 2003 Standard
Windows Firewall ( On w/ port 25 exception) - no add'l firewalls
IIS 6.0
The code: vbscript
<%
' *** Construct CDO Email.
' *** Send Product To A Friend.
Set objMail = Server.CreateObject("CDONTS.Newmail")
objMail.BodyFormat = 0
objMail.MailFormat = 0
objMail.To = Request.Form("friend_email")
objMail.From = Request.Form("your_email")
objMail.Subject = "I thought you should see
this..."
objMail.Body = Request.Form("message_body")
objMail.Send
Set objMail = Nothing
%>
messages in the Queue folder:
"This is an automatically generated Delivery Status Notification.
THIS IS A WARNING MESSAGE ONLY.
YOU DO NOT NEED TO RESEND YOUR MESSAGE.
Delivery to the following recipients has been delayed.
friend_email@xxxxxxxxxx........"
messages in the Badmail folder:
"This is an automatically generated Delivery Status Notification.
Unable to deliver message to the following recipients, due to being
unable to connect successfully to the destination mail server.
friend_email@xxxxxxxxxx........"
I don't really have much else to go on. Can someone please get me going
in the right direction to figuring this out.
Again.. it was working perfect at one time on this same server. Now no
messages will send. They all sit in the Queue?
Thank you in advance.
| |
| Jake Marx 2005-11-09, 5:52 pm |
| Hi thegrind,
Are you able to successfully send an email to a recipient via telnet on port
25 (from the web server)?
http://support.microsoft.com/kb/q153119/
--
Regards,
Jake Marx
www.longhead.com
[please keep replies in the newsgroup - email address unmonitored]
thegrind wrote:
> Hey all...
>
> I am losing my mind with this one. I had a simple ASP page with a
> CDONTS script that would send a message to a friend. It worked perfect
> for months. It suddenly stopped working. The actual script works
> perfect (as far as creating the message) and no error msgs appear to
> the user on the website. The message is being created but its being
> held in the QUEUE folder and then eventually brought into the BADMAIL
> folder a few days later.
>
> I am completely out of ideas on how to troubleshoot. I don't have a
> clue as to what to look for next.
>
> Here's where I am at:
>
> Server: Windows 2003 Standard
> Windows Firewall ( On w/ port 25 exception) - no add'l firewalls
> IIS 6.0
>
> The code: vbscript
>
> <%
> ' *** Construct CDO Email.
> ' *** Send Product To A Friend.
> Set objMail = Server.CreateObject("CDONTS.Newmail")
> objMail.BodyFormat = 0
> objMail.MailFormat = 0
> objMail.To = Request.Form("friend_email")
> objMail.From = Request.Form("your_email")
> objMail.Subject = "I thought you should see
> this..."
> objMail.Body = Request.Form("message_body")
> objMail.Send
> Set objMail = Nothing
> %>
>
> messages in the Queue folder:
>
> "This is an automatically generated Delivery Status Notification.
> THIS IS A WARNING MESSAGE ONLY.
> YOU DO NOT NEED TO RESEND YOUR MESSAGE.
> Delivery to the following recipients has been delayed.
> friend_email@xxxxxxxxxx........"
>
> messages in the Badmail folder:
>
> "This is an automatically generated Delivery Status Notification.
> Unable to deliver message to the following recipients, due to being
> unable to connect successfully to the destination mail server.
> friend_email@xxxxxxxxxx........"
>
> I don't really have much else to go on. Can someone please get me
> going in the right direction to figuring this out.
>
> Again.. it was working perfect at one time on this same server. Now no
> messages will send. They all sit in the Queue?
>
> Thank you in advance.
| |
| thegrind 2005-11-09, 5:52 pm |
| Thanks Jake for a step in the right direction. I cannot send via
telnet. I get to step 3 or 4 to tell the server who the message is from
/ to and Im getting the following error message returned:
530 5.7.3 Client was not authenticated
550. 5.7.1 Unable to relay for user@testdomain.com
I have very little understanding of Authentication as well as Relaying.
And what I don't understand is why this was working previously. Nothing
has been changed from the previous settings. Could this have anything
to do with my ISP where the server resides? If so.. what is the
question that I should ask them?
My Authentication settings for IIS SMTP are: Anonymous
Relay settings: Allow only the list below is selected (my server name
and ip are in the list)
Any additional help appreciated. Thanks.
| |
| thegrind 2005-11-09, 5:52 pm |
| Problem fixed. It was a DNS issue. My ISP recently updated their DNS
and did not think this server would be effected.
Thanks again.
| |
| Jeff Cochran 2005-11-13, 7:49 am |
| On 8 Nov 2005 19:45:16 -0800, "thegrind" <thegrind@comcast.net> wrote:
>Hey all...
>
>I am losing my mind with this one. I had a simple ASP page with a
>CDONTS script that would send a message to a friend. It worked perfect
>for months. It suddenly stopped working. The actual script works
>perfect (as far as creating the message) and no error msgs appear to
>the user on the website. The message is being created but its being
>held in the QUEUE folder and then eventually brought into the BADMAIL
>folder a few days later.
>
>I am completely out of ideas on how to troubleshoot. I don't have a
>clue as to what to look for next.
>
>Here's where I am at:
>
>Server: Windows 2003 Standard
>Windows Firewall ( On w/ port 25 exception) - no add'l firewalls
>IIS 6.0
>
>The code: vbscript
>
><%
>' *** Construct CDO Email.
>' *** Send Product To A Friend.
>Set objMail = Server.CreateObject("CDONTS.Newmail")
> objMail.BodyFormat = 0
> objMail.MailFormat = 0
> objMail.To = Request.Form("friend_email")
> objMail.From = Request.Form("your_email")
> objMail.Subject = "I thought you should see
>this..."
> objMail.Body = Request.Form("message_body")
> objMail.Send
>Set objMail = Nothing
>%>
>
>messages in the Queue folder:
>
>"This is an automatically generated Delivery Status Notification.
>THIS IS A WARNING MESSAGE ONLY.
>YOU DO NOT NEED TO RESEND YOUR MESSAGE.
>Delivery to the following recipients has been delayed.
> friend_email@xxxxxxxxxx........"
>
>messages in the Badmail folder:
>
>"This is an automatically generated Delivery Status Notification.
>Unable to deliver message to the following recipients, due to being
>unable to connect successfully to the destination mail server.
> friend_email@xxxxxxxxxx........"
>
>I don't really have much else to go on. Can someone please get me going
>in the right direction to figuring this out.
>
>Again.. it was working perfect at one time on this same server. Now no
>messages will send. They all sit in the Queue?
First, check your SMTP logs. You may be getting refused by the
destination. Basically, this is happening because your SMTP server
can't connect to the destination. Another likely cause is a DNS
problem. See if you can resolve the destination's MX record from the
server using NSLookup. And make sure it's a valid email address in
the first place.
Jeff
|
|
|
|