Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

5.7.1 no relay with IIS SMTP server

Posted on 2009-04-07
12
Medium Priority
?
408 Views
Last Modified: 2013-11-30
I am trying to use CDO to send emails from an ASP page.  The script I am using in my ASP page works fine.  All the message are dumping into the MailRoot folder with a 5.7.1 no relay message.  

I am not sure what to look for at this point.  Some type of DNS issue....

0
Comment
Question by:mwagoner_73
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 6
12 Comments
 
LVL 3

Expert Comment

by:Popeyediceclay
ID: 24090356
Probably an authentication issue or you just don't have the SMTP server configured to allow that server to relay.  Did you look at the properties of the SMTP server in IIS?
0
 

Author Comment

by:mwagoner_73
ID: 24090549
I have checked the properties and granted the localhost under the relay access permission... not sure what else to check... IIS 6.0 Win2k3server with SP2...

0
 
LVL 3

Expert Comment

by:Popeyediceclay
ID: 24090662
Enable logging on the SMTP server and try it again, check the log.

Also, check you config against this: http://support.microsoft.com/kb/230235
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

Author Comment

by:mwagoner_73
ID: 24092707
In the link, it mentions Smart Host, I am not sure what that means.  I have a local DNS server that is for the local network only, it doesn't resolve names for the internet.  BTW I am only trying to send emails on the local network from this app...

I followed the article, it does mention that it applies to IIS 4.0 and I am using 6.0 but I followed along...

Access is set to allow Anonymous...

Mail is no longer ending up in the bad mail directory, it is in the Drop directory....???
0
 
LVL 3

Expert Comment

by:Popeyediceclay
ID: 24093694
How are the users getting email?  Exchange server?  Did you look at the SMTP logs?
0
 

Author Comment

by:mwagoner_73
ID: 24096884
Yes, they receieve email via exchange server/outlook.  I don't see any log files being generated other than the IIS log file.  Logging is selected in the SMTP directory I am not finding the log...
0
 
LVL 3

Accepted Solution

by:
Popeyediceclay earned 2000 total points
ID: 24097114
I would change it to have the CDO use the Exchange server to send mail rather than the local SMTP server, less overhead that way and more reliable.  Can it communicate with the Exchange server directly?  You can use the DNS name or IP address in the below example:

<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="mymail@mydomain.com"
myMail.To="someone@somedomain.com"
myMail.TextBody="This is a message."
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") _
="smtp.server.com"
'Server port
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") _
=25 
myMail.Configuration.Fields.Update
myMail.Send
set myMail=nothing
%>

Open in new window

0
 

Author Comment

by:mwagoner_73
ID: 24097190
I will give that a go shortly and let you know what happens.  On line 8, what does the number 2 signify?

Matt

0
 
LVL 3

Expert Comment

by:Popeyediceclay
ID: 24097267
I think "sendusing = 1" means use local and "2" means use remote.
0
 

Author Comment

by:mwagoner_73
ID: 24098542
this is the error message that I am getting.  line 17 is myMail.Send command

CDO.Message.1 error '80040213'

The transport failed to connect to the server.

/test_email2.asp, line 17

???
0
 
LVL 3

Expert Comment

by:Popeyediceclay
ID: 24098585
Did you use the server DNS name or IP address for this line:

'Name or IP of remote SMTP server
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") ="smtp.server.com"

?

Can is resolve the server name and DNS name using nslookup from the command line?:

nslookup mail.domain.com
0
 

Author Comment

by:mwagoner_73
ID: 24100869
I had the name of my mail server misspelled in the code.  It does work.  Thanks for the help!!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question