IIS6 Windows 2003 server wont route e-mail ....

ok, im working on a Lan environment which has a SMTP server on it with access to the public world, and our exchange server. i am on a separate V-lan, so its not possible for me to send directly to the public or to exchange, but i can connect to the SMTP server,

i run a windows 2003 server, recently upgraded from windows 2000, and running several key ASP applications for our buisness. some of these applications need to be able to send mail ....

i have addressed the issue as far as i can send the e-mail to the local server, however for some reason the local server cannot route, or will not route the mail to the remote SMTP server with public access...
i have set up the smart host as this remote server, however, the mail just sits in the Queue and doesn't shift... a major pain in the ...... you see where i'm going.. any ideas as to what im doing wrong, bearing in mind that this used to work in windows server 2000... the only difference is that with windows 2000, it allowed an ip address entry for the smart host, whereas 2003 (and IIS6) wnats a proper domain name...

im putting the max of 500 points on this, but if you answer quickly then there may be more to be gotten!!!
LVL 1
blostarAsked:
Who is Participating?
 
WeHeConnect With a Mentor Commented:
this can occure, if your dns server does not accept UDP queries.
to resolve this, you have to change the metabase. take care!

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 Computer name (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 <IIsConfigObject Location ="/LM/SmtpSvc" heading:<Custom
            Name="SmtpUseTcpDns"
            ID="36997"
            Value="2"
            Type="DWORD"
            UserType="IIS_MD_UT_SERVER"
            Attributes="INHERIT"
      />
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.
Save your changes to the Metabase.xml file, and then quit Notepad.
0
 
blostarAuthor Commented:
i have tried modifying the metabase with the above entry, in several ways, but IIS keeps on finding problems and ercovers the metabase file from a backup, (or at least thats what it seems to be doing ...

if i mail the metabase file to you could you do the modifacation, im sure i must be making some sort of problem for myself that i cannot see... the event log is showing me errors such as :

===========================================


Error parsing XML file. Reason: XML document must have a top level element.
 Incorrect XML:
ErrorCode           : 0xC00CE558
Interceptor         : 14
OperationType       : Populate
Table               : MBProperty
ConfigurationSource : file:///C:/WINDOWS/system32/inetsrv/EditWhileRunning_Metabase.xml
Row                 : 0
Column              : 0
 
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
 
============================================
A  warning/error occurred while processing text edits to the metabase file. The file with the warning/error has been copied into the history directory with the name Errors appended to it.C:\WINDOWS\system32\inetsrv\History\MetaBaseError_0000000006.xml
ErrorCode           : 0x8021080A
 
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
 
============================================
Unable to read the edited metabase file (tried 10 times). Check for (a) Missing metabase file or (b) Locked metabase file or (c) XML syntax errors.
ErrorCode           : 0x8021080A
 
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

=============================================

thanks for the speedy reply by the way, if you solve it then i'll drop a 500 point question extra for you..!!
0
 
WeHeCommented:
there is a bad page break.
i hope you have seen it (one more try):

under the <IIsConfigObject Location ="/LM/SmtpSvc" heading:

<Custom
            Name="SmtpUseTcpDns"
            ID="36997"
            Value="2"
            Type="DWORD"
            UserType="IIS_MD_UT_SERVER"
            Attributes="INHERIT"
      />

for sure you can mail it to me and i will do it, but i dont know, if its breaking EE rules.
can you put it on a public place like anonymous ftp or something where i can get and later upload it?
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
blostarAuthor Commented:
i spotted the bad page break, but its still playing silly buggers,
i'm gonna try taking the server offline and then save the change and see if that does it ....


i'll post back here if either way..



0
 
blostarAuthor Commented:
still no joy....

it seems to be attempting to send the mail to an ip address of 217.*.*.* where the 'relay' or smarthost is on an IP of 193.* which is why its failing to send....think im gonna remove and re-install the SMtp service and see if that helps.... also, i couldn't find the correct header to insert the custom section into , i'll give this a try and see what happens, if not i'll see if i can post the metabase file somewhere and see what you can do ..

Thanks WeHe.

Blostar
0
 
WeHeCommented:
do you get any eventlog entrys ?
0
 
blostarAuthor Commented:
thats where i got the 217 address .. but i got the same events once i restarted the IIS service...

just about finished the reinstall .. fingers crossed...
0
 
blostarAuthor Commented:
now i've lost the SMTP service from IIS manager...... any ideas ..??
0
 
WeHeCommented:
did u select it in "add/remove programs" -> "add/remove windows components" ?
its not selected per default.
0
 
blostarAuthor Commented:
yea, i removed and reinstalled it several times now .... it wont re-appear in the IIS manager..... think im going to have to completely reinstall IIS and components.. something is not right at all ...... not really a job for just now though, too many users... may have to try doing it later on tonight... unless you can think of anything? ? the event logs show SMTP service is running, and i can telnet a response from it, but i cant configure, or even see it in IIS manager... looks like the beginning of a Saga really.. .
0
 
WeHeCommented:
Maybe this can help you:

The Simple Mail Transfer Protocol (SMTP) Service and Network News Transport Protocol (NNTP) Services are installed on a server running Internet Information Services (IIS), but the virtual servers do not appear in the Internet Services Manager Microsoft Management Console (MMC). The services work properly, but they cannot be configured.

The File and Printer Sharing for Microsoft Networks service is not installed on the Web server. The SMTP and NNTP services are dependent on this service.

IIS 6.0
To make the virtual servers visible, install the File and Printer Sharing for Microsoft Networks service. To do this, follow these steps in IIS 6.0:
Click Start, and then click Control Panel.
Click Network Connection.
Click Local Area Connection, and then click Properties.
Click the General tab, click to select the Printer Sharing check box, and then click Install.
0
 
blostarAuthor Commented:
.... the nntp service is showing and the file and printer sharing service is installed, however, i think i may reinstall the service and see if that helps... much appreciated WeHe , definately going to have to give you at least an extra 500 once this is all done!!

0
 
blostarAuthor Commented:
ok, so i found out why the smtp service wasn't showing,
turns out to be this :

http://blogs.msdn.com/exchange/archive/2004/06/29/168919.aspx 

just so you know if it ever happens to you !!!

anyway, i have tried and tried loads of ways now, so i think im left with only the option to see if you can add the lines i require to the file ..... everytime i try to add it it tells me its a duplicate location in the event log, but i cant find where or why this may be the case,

i have uploaded the metabase file to angelfire,
http://ldbauth.lycos.com/cgi-bin/mayaLogin

username of "ab8/BLOstar"
password of "expertsonly"

much appreciated

BLOstar
0
 
blostarAuthor Commented:
once you log in you may need to use this link
http://www.angelfire.lycos.com/cgi-auth/webshell
to get to the webshell .... i hate angelfire....
0
 
blostarAuthor Commented:
Well... it took me quite a while, but as it turns out it wasn't anything to do with the metafile, it was to do with a rather strange problem with IIS, as it turns out, when you put the ip address in [brackets] it is acceptable, pain, but bearable, and to top that, the relay server has some wierd dns entries which meant that using a hostname would make it fail, again, dont know why... anyway, the long and short is its now working, and although your answers were not the solution i did promise points for the assistance, so i'm giving the 500 for this question anyway...

much appreciated,

BLOstar
0
 
WeHeCommented:
as you say: "it is now working" is the best point :)
thank you for the points.
0
All Courses

From novice to tech pro — start learning today.