Microsoft KB Archive/820284

= Mail may not be delivered to certain domains if Server OS is Windows Server 2003 =

Article ID: 820284

Article Last Modified on 10/25/2007

-

APPLIES TO


 * Microsoft Exchange Server 2003 Enterprise Edition
 * Microsoft Exchange Server 2003 Standard Edition
 * Microsoft Windows Server 2003, Standard Edition (32-bit x86)
 * Microsoft Windows Server 2003, Enterprise Edition

-



Important This article contains information about editing the metabase. Before you edit the metabase, verify that you have a backup copy that you can restore if a problem occurs. For information about how to do this, see the &quot;Configuration Backup/Restore&quot; Help topic in Microsoft Management Console (MMC).



SYMPTOMS
When a user in your organization tries to send messages to certain domains by using Simple Mail Transfer Protocol (SMTP), those messages are not delivered successfully. This issue can occur with either IIS or Exchange when the underlying Operating System on the server is Windows Server 2003.

Additionally, an event that is similar to the following appears in the event log: Event ID: 4000 Source: SMTPSVC

Event Type: Warning

Description: Message delivery to the remote domain &quot;contoso.com&quot; failed. An internal DNS error caused a failure to find the remote server. 0000: c00402e7



CAUSE
This issue occurs if all the following conditions are true:
 * The DNS computer that your SMTP computer queries to obtain the mail exchanger (MX) resource records of the destination computer is configured to only accept User Datagram Protocol (UDP) queries.
 * The Windows Server 2003-based SMTP computer is configured to use UDP first and then to fail over to Transmission Control Protocol (TCP) if the SMTP computer receives a truncated name resolution response.
 * The DNS computer that your SMTP computer queries returns a truncated UDP response.

Note A UDP response is truncated if there are too many MX resource records to fit in a single UDP packet.

In this situation, the name lookup operation from your SMTP computer is unsuccessful because the DNS computer does not respond to the TCP query. In this situation, you may experience the following symptoms:
 * 1) The SMTP computer submits a query to the DNS computer by using UDP.
 * 2) The DNS computer returns a truncated response to the SMTP computer.
 * 3) Because the SMTP computer is configured to fail over to TCP if the SMTP computer receives a truncated response, the SMTP computer discards the UDP response, fails over to TCP, and then resubmits the DNS query to the DNS computer by using TCP.
 * 4) Because the DNS computer is configured to only respond to UDP queries, the TCP query from the SMTP computer is unsuccessful.

Therefore, the message cannot be delivered to the destination domain.



RESOLUTION
Warning If you edit the metabase incorrectly, you can cause serious problems that may require you to reinstall any product that uses the metabase. Microsoft cannot guarantee that problems that result if you incorrectly edit the metabase can be solved. Edit the metabase at your own risk.

Note Always back up the metabase before you edit it.

To resolve this issue, configure the Simple Mail Transfer Protocol (SMTP) service on the Windows Server 2003 computer to only use UDP. When you configure the Simple Mail Transfer Protocol (SMTP) service to use UDP only, the SMTP computer uses the results from a truncated response that the SMTP computer receives from a DNS computer to complete the message delivery to the destination domain. To configure the Simple Mail Transfer Protocol (SMTP) service to use UDP only, add or modify the following metabase key:

Key ID: 36997

Key type: DWORD

Key value: 2

Note The following table describes the possible values that you can assign to key ID 36997:

To modify the metabase, follow these steps:  Start the Microsoft Internet Information Services Manager tool. To do this, click Start, point to Administrative Tools, and then click Internet Information Services (IIS) Manager. Right-click  (local computer), and then click Properties. Click to select the Enable Direct Metabase Edit check box, and then click OK. Open the Metabase.xml file by using Notepad. To do this, click Start, click Run, type notepad %systemroot%\system32\inetsrv\metabase.xml, and then click OK.  If the following lines of code are not present, paste them under the  Note Paste these lines of code in numeric order based on the ID number 36997. For example, paste these lines of code after the lines of code that contain ID number 36931 and before the lines of code that contain ID number 49875.  If this code section already exists, modify the Value item to a value of 2.</li> Save your changes to the Metabase.xml file, and then quit Notepad.</li></ol>

<div class="moreinformation_section">

MORE INFORMATION
For more information, click the following article numbers to view the articles in the Microsoft Knowledge Base:

232068 How to download, install, and remove the IIS MetaEdit 2.2 utility

832223 Some DNS name queries are unsuccessful after you upgrade your DNS server to Windows Server 2003

Additional query words: XADM

Keywords: kbeventlog kbenv kbprb KB820284

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.