Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


May 2002

IIS Informant: Configuring Port 53 for SMTP in IIS 5.0

RSS
Subscribe to Windows Web Solutions | See More Domain Name System (DNS) Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!
SideBar    Connectionless Protocols

I've correctly configured a Microsoft SMTP server for IIS 5.0, but the mail stays in the Queue folder and isn't delivered. The error message an internal DNS error caused a failure to find the remote server is appearing in Event Viewer. All the NTFS permissions are correct, and I've configured the SMTP service to use the correct NIC. When I use Telnet to access port 25 on the SMTP server, the server responds, so I know the SMTP service is working. I'm not using a smart host, and I can ping the DNS server as well as use the Microsoft Windows 2000 Resource Kit's nslookup.exe tool to resolve the domain names for the mail. Why isn't the server delivering mail?

You seem to have covered almost all the bases. However, one other gotcha can cause this problem, and you're a good candidate for it because the server seems to be working. The DNS protocol specification, which Internet Engineering Task Force (IETF) Request for Comments (RFC) 1035 spells out, indicates that you must use port 53 on the DNS server. For you to successfully resolve the domain name in the email address, proxy servers and firewalls must be able to pass DNS queries over port 53. DNS resolution is working on your system or you wouldn't be able to ping the domains to which you're sending mail. However, the largest percentage of DNS queries uses UDP on port 53. Although TCP is more reliable than UDP, UDP is a connectionless protocol and thus more efficient. (For information about connectionless protocols, see the sidebar "Connectionless Protocols.") Thus, because traffic to and from a DNS server is brief and the packets are small, UDP is the preferred means of communicating with the server. Preferences aside, however, RFC 1035 states that a DNS server should respond to both TCP and UDP DNS queries.

As a safety measure, security administrators will often block TCP DNS traffic across a firewall, proxy server, or at the DNS server itself. This block is where the problem lies because, by default, the Microsoft SMTP service uses TCP for DNS traffic.

You can edit a metabase setting to switch the default behavior of the SMTP server to use UDP, but I've been unable to verify the exact setting. I do know that Microsoft doesn't support the configuration. You should be able to configure your firewalls and proxy servers to allow TCP traffic on port 53.

Another (and perhaps more likely) reason that you can't send mail with the SMTP server is that most large companies restrict outbound SMTP at their firewalls. Many companies control outbound SMTP by specifying which servers can forward outbound mail. So, you need to configure IIS's SMTP properties to relay the mail to another SMTP server that has rights to send email messages to the Internet. To do so, open the SMTP server's Properties dialog box, click the Delivery tab, then click Advanced. Enter the IP address of the corporate mail server in the Smart host field.

End of Article



Reader Comments
Thanks so much for this information. After exhastive searches I stumbled across this document which hit the nail on the head. Phew!

Gary Watson February 04, 2003


MetaBase DNS Setting: LM->SmtpSvc->1 Add DWORD ID 36997 Data = 0 (for UDP only), 1 (for TCP only), 2 (for UDP then TCP)

Tim September 28, 2003


Wow! It uses TCP by default for DNS. Explains a TON of errors that I've been getting. Why doesn't Microsoft document this better?

Marc October 27, 2003


The last paragraph solved a major problem for me. Many thanks.

Steve Jones April 21, 2004


I can just repeat what has allready been written: Thanks 1000 times for this info. I was really lost with this problem!

Michae Adrian May 27, 2004


Many many thanks to Tim. I was at the end of my tether.

Cheers

fabbers August 04, 2004 (Article Rating: )


Actually Tim's mixed the value up. The Data-value 0 is UDP with TCP failover, and 2 is UDP only.

Anonymous User December 13, 2004


I was also gettting this error; I added the IP address of the exchange server under smtp server properties --> Delivery --> Advanced -- Configure and now everything's lovely.

bmnbmn July 06, 2006 (Article Rating: )


You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
The Memory-Optimization Hoax

Don't believe the hype. At best, RAM optimizers have no effect. At worst, they seriously degrade performance. ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

WinInfo Short Takes: Week of November 24, 2008

An often irreverent look at some of the week's other news, including a Vista Capable dismissal request, Zune price reductions, Morrow musings, Novell and Microsoft sitting in a tree ... two years later, Yahoo!, IE 6 on Windows Mobile, and so much more ...


Related Events Delivering Reliable and Effective Web-Based Applications

Making Web Application Perform Better: What to Watch, How to Watch It, and How to Fix It

Check out our list of Free Email Newsletters!

IIS and Web Administration eBooks Keeping Your Business Safe from Attack: Monitoring and Managing Your Network Security

Related IIS and Web Administration Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing