IIS and SMTP - SMTP 0xC00402CE

This is Interesting: Free IT Magazines  
Home > Archive > IIS and SMTP > October 2006 > SMTP 0xC00402CE





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author SMTP 0xC00402CE
Bill H

2006-10-01, 7:25 pm

I'm trying to get the SMTP server running on Windows 2003 Server. The O/S
is completly patched. I have the following text file:

v- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -v
Date: Sat, 30 Sep 2006 14:32
From: support@mydomain.com
Subject: Statement from LAKEWOOD VIEW TWNHOME ASSN
To: bill@mydomain.com

Hello:

This is a test message.
^- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -^

The text file is dropped in the "C:\inetpub\mailroot\Pickup" sub-directory
and immediately is reflected in the "BadMail" sub-directory along with the
".BDP" and ".BDR" files. The ".BDR" file looks like:

v- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -v
Unable to deliver this message because the follow error was encountered:
"Error is processing file in pickup directory.".

The specific error code was 0xC00402CE.
^- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -^

My first step was to see if the SMTP server worked. So, I followed the
instructions in the following link:

http://support.microsoft.com/kb/323350/

>telnet

Welcome to Microsoft Telnet Client
Excape Character is 'CTRL+]'
Microsoft Telnet> set LocalEcho
Local echo on
Microsoft Telnet> open mymachine 25

220 mymachine Microsoft ESMTP MAIL Service, Version: 6.0.2600.2180 ready at
Sun, 1
Oct 2006 16:10:36 -0700
helo me
250 mymachine Hello [192.168.1.101]
mail from:support@advantos.net
250 2.1.0 support@mydomain.com ....Sender OK
rcpt to:wphaskett@advantos.net
250 2.1.5 bill@mydomain.com
Data
354 Please start mail input.
Subject:This is a test

Testing

..
250 Mail queued for delivery.
quit
221 Closing connection. Good bye.

Connection to host lost.

Press any key to continue...

Welcome to Microsoft Telnet Client

Escape Character is 'CTRL+]'

Microsoft Telnet> set LocalEcho
Local echo on
Microsoft Telnet> helo me
Invalid Command. type ?/help for help
Microsoft Telnet> open asibill 25
Connecting To asibill...
Microsoft Telnet> quit

C:\Documents and Settings\me>

....and I received an email fine.

I've added "everyone" to the security for "C:\inetpub\mailroot", giving them
full control and propagated these settings to all child objects.

I tried the same thing on my Windows XP Pro settings for IIS and the same
thing happens. About 8 months ago, as I was testing some dbms software
doing email billings, this seemed to work fine writing email text files to
"C:\inetpub\mailroot\Pickup" and I haven't messed with it since. Now it
doesn't work. I'm guessing something occured during one of the Windows
updates that has locked this down.

In IIS I've set relay restrictions to "All except the list below" and have
assigned noone to the "...list below". The "Allow all computers which
successfully authenticate to relay, regardless of the list above" checkbox
is checked. Connection control is set to "all except the list below" and,
again, noone is assigned to the "...list below".

I've contacted several MSCEs and they can't figure this out either. Can
anyone help me figure out how to make the SMTP server work?

Thanks,

Bill



Ken Schaefer

2006-10-03, 1:38 am

Hi,

You should change your relay settings - you are currently allowing all
machines to relay. Instead only authorised machines should be allowed to
relay.

For messages deposited into the pickup folder, relay settings aren't
enforced/considered, so you should not need to open up the relay settings.

For your test messages - what domain name are you using in the From: field?
It needs to be a domain name resolvable by the SMTP server.

Cheers
Ken

"Bill H" <you@notreally.com> wrote in message
news:yqKdneIsDO-h073YnZ2dnUVZ_sKdnZ2d@comcast.com...
> I'm trying to get the SMTP server running on Windows 2003 Server. The O/S
> is completly patched. I have the following text file:
>
> v- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -v
> Date: Sat, 30 Sep 2006 14:32
> From: support@mydomain.com
> Subject: Statement from LAKEWOOD VIEW TWNHOME ASSN
> To: bill@mydomain.com
>
> Hello:
>
> This is a test message.
> ^- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -^
>
> The text file is dropped in the "C:\inetpub\mailroot\Pickup" sub-directory
> and immediately is reflected in the "BadMail" sub-directory along with the
> ".BDP" and ".BDR" files. The ".BDR" file looks like:
>
> v- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -v
> Unable to deliver this message because the follow error was encountered:
> "Error is processing file in pickup directory.".
>
> The specific error code was 0xC00402CE.
> ^- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -^
>
> My first step was to see if the SMTP server worked. So, I followed the
> instructions in the following link:
>
> http://support.microsoft.com/kb/323350/
>
> Welcome to Microsoft Telnet Client
> Excape Character is 'CTRL+]'
> Microsoft Telnet> set LocalEcho
> Local echo on
> Microsoft Telnet> open mymachine 25
>
> 220 mymachine Microsoft ESMTP MAIL Service, Version: 6.0.2600.2180 ready
> at Sun, 1
> Oct 2006 16:10:36 -0700
> helo me
> 250 mymachine Hello [192.168.1.101]
> mail from:support@advantos.net
> 250 2.1.0 support@mydomain.com ....Sender OK
> rcpt to:wphaskett@advantos.net
> 250 2.1.5 bill@mydomain.com
> Data
> 354 Please start mail input.
> Subject:This is a test
>
> Testing
>
> .
> 250 Mail queued for delivery.
> quit
> 221 Closing connection. Good bye.
>
> Connection to host lost.
>
> Press any key to continue...
>
> Welcome to Microsoft Telnet Client
>
> Escape Character is 'CTRL+]'
>
> Microsoft Telnet> set LocalEcho
> Local echo on
> Microsoft Telnet> helo me
> Invalid Command. type ?/help for help
> Microsoft Telnet> open asibill 25
> Connecting To asibill...
> Microsoft Telnet> quit
>
> C:\Documents and Settings\me>
>
> ...and I received an email fine.
>
> I've added "everyone" to the security for "C:\inetpub\mailroot", giving
> them full control and propagated these settings to all child objects.
>
> I tried the same thing on my Windows XP Pro settings for IIS and the same
> thing happens. About 8 months ago, as I was testing some dbms software
> doing email billings, this seemed to work fine writing email text files to
> "C:\inetpub\mailroot\Pickup" and I haven't messed with it since. Now it
> doesn't work. I'm guessing something occured during one of the Windows
> updates that has locked this down.
>
> In IIS I've set relay restrictions to "All except the list below" and have
> assigned noone to the "...list below". The "Allow all computers which
> successfully authenticate to relay, regardless of the list above" checkbox
> is checked. Connection control is set to "all except the list below" and,
> again, noone is assigned to the "...list below".
>
> I've contacted several MSCEs and they can't figure this out either. Can
> anyone help me figure out how to make the SMTP server work?
>
> Thanks,
>
> Bill
>
>
>



Bill H

2006-10-04, 7:38 pm

Ken:

I opened the relay settings in an attempt to make sure relaying wasn't the
problem. You're right, of course, about closing down this opening. I've
changed relaying to allow it only from 192.168.1.0 addresses with a standard
subnet mask of 255.255.255.0.

The domain I'm using in the "FROM:" field is my company domain. There is no
domain defined on the SMTP server. Our company domain is resolvable on
other servers by other kinds of software. For instance, we use it in QMAIL
and SENDMAIL on several Linux servers. However, this had to be configured.

I used SMTPDiag and the results were:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
D:\SmtpDiag>smtpdiag.exe "Support at our Company domain" "Me at our Company
domain"

Searching for Exchange external DNS settings.
Computer name is ASIOLYWADEV.
Failed to connect to the domain controller. Error: 8007054b

Checking SOA for "our Company domain".
Checking external DNS servers.
Checking internal DNS servers.
SOA serial number match: Passed.

Checking local domain records.
Checking MX records using TCP: "our Company domain".
Checking MX records using UDP: "our Company domain".
Both TCP and UDP queries succeeded. Local DNS test passed.

Checking remote domain records.
Checking MX records using TCP: "our Company domain".
Checking MX records using UDP: "our Company domain".
Both TCP and UDP queries succeeded. Remote DNS test passed.

Checking MX servers listed for "Me at our Company domain".
Connecting to MAIL.{our Company domain} [nnn.nnn.nnn.nnn] on port 25.
Successfully connected to MAIL.{our Company domain}.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Our company domain isn't in the "C:\WINDOWS\system32\drivers\etc\hosts" file
on the SMTP server either.

I tried to assign our company domain to the SMTP server by opening the IIS
snap-in then setting the default SMTP server "Properties > Delivery >
Advanced > Fully-qualified domain name" to our company domain.

How does one configure this SMTP server, which is on our network, to send
out emails deposited into the pickup folder with our company domain in the
"FROM:" field? I've searched all over the internet and can't find out.

Thanks,

Bill

"Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
news:%236CbF7q5GHA.1012@TK2MSFTNGP05.phx.gbl...
> Hi,
>
> You should change your relay settings - you are currently allowing all
> machines to relay. Instead only authorised machines should be allowed to
> relay.
>
> For messages deposited into the pickup folder, relay settings aren't
> enforced/considered, so you should not need to open up the relay settings.
>
> For your test messages - what domain name are you using in the From:
> field? It needs to be a domain name resolvable by the SMTP server.
>
> Cheers
> Ken
>
> "Bill H" <you@notreally.com> wrote in message
> news:yqKdneIsDO-h073YnZ2dnUVZ_sKdnZ2d@comcast.com...
>
>



Ken Schaefer

2006-10-05, 1:21 pm

Hi,

> The domain I'm using in the "FROM:" field is my company domain.


OK - just wanted to check you weren't using "domain.com" (unless you have
configured your DNS servers to resolve domain.com, and your SMTP server is
configured to use your internal DNS servers)

>Our company domain is resolvable on other servers by other kinds of
>software


That is irrelevant. IIS SMTP server will not send mail out if it can't
resolve the From: domain in the DNS. So you need to check whether From:
domain is resolvable by the IIS box.


Also, verify that there are no file system filters (e.g. antivirus software,
imaging softare - Ghost/Acronis) configured to scan this pickup directory.

Lastly - do you have Exchange installed on this machine, or is it IIS SMTP
only?

Thanks

Cheers
Ken


"Bill H" <you@notreally.com> wrote in message
news:qPmdnZzMMI0riLnYnZ2dnUVZ_sOdnZ2d@co
mcast.com...
> Ken:
>
> I opened the relay settings in an attempt to make sure relaying wasn't the
> problem. You're right, of course, about closing down this opening. I've
> changed relaying to allow it only from 192.168.1.0 addresses with a
> standard subnet mask of 255.255.255.0.
>
> The domain I'm using in the "FROM:" field is my company domain. There is
> no domain defined on the SMTP server. Our company domain is resolvable on
> other servers by other kinds of software. For instance, we use it in
> QMAIL and SENDMAIL on several Linux servers. However, this had to be
> configured.
>
> I used SMTPDiag and the results were:
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> D:\SmtpDiag>smtpdiag.exe "Support at our Company domain" "Me at our
> Company domain"
>
> Searching for Exchange external DNS settings.
> Computer name is ASIOLYWADEV.
> Failed to connect to the domain controller. Error: 8007054b
>
> Checking SOA for "our Company domain".
> Checking external DNS servers.
> Checking internal DNS servers.
> SOA serial number match: Passed.
>
> Checking local domain records.
> Checking MX records using TCP: "our Company domain".
> Checking MX records using UDP: "our Company domain".
> Both TCP and UDP queries succeeded. Local DNS test passed.
>
> Checking remote domain records.
> Checking MX records using TCP: "our Company domain".
> Checking MX records using UDP: "our Company domain".
> Both TCP and UDP queries succeeded. Remote DNS test passed.
>
> Checking MX servers listed for "Me at our Company domain".
> Connecting to MAIL.{our Company domain} [nnn.nnn.nnn.nnn] on port 25.
> Successfully connected to MAIL.{our Company domain}.
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
> Our company domain isn't in the "C:\WINDOWS\system32\drivers\etc\hosts"
> file on the SMTP server either.
>
> I tried to assign our company domain to the SMTP server by opening the IIS
> snap-in then setting the default SMTP server "Properties > Delivery >
> Advanced > Fully-qualified domain name" to our company domain.
>
> How does one configure this SMTP server, which is on our network, to send
> out emails deposited into the pickup folder with our company domain in the
> "FROM:" field? I've searched all over the internet and can't find out.
>
> Thanks,
>
> Bill
>
> "Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
> news:%236CbF7q5GHA.1012@TK2MSFTNGP05.phx.gbl...
>
>



Bill H

2006-10-06, 1:47 am

Ken:

I fixed it! I scrounged around the internet for awhile and found someone
who had moved emails from a Linux box, which introduced a problem with the
LineEnd character(s).

I looked at our billing software and noticed there was a configuration for
LineEnd characters. I changed it from CRLF$ to LF$ and everything works as
it's supposed to.

How'd I figure that one out?

Thanks again,

Bill

P.S. I was configuring an IIS SMTP server.

"Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
news:u2PFsVI6GHA.4728@TK2MSFTNGP02.phx.gbl...
> Hi,
>
>
> OK - just wanted to check you weren't using "domain.com" (unless you have
> configured your DNS servers to resolve domain.com, and your SMTP server is
> configured to use your internal DNS servers)
>
>
> That is irrelevant. IIS SMTP server will not send mail out if it can't
> resolve the From: domain in the DNS. So you need to check whether From:
> domain is resolvable by the IIS box.
>
>
> Also, verify that there are no file system filters (e.g. antivirus
> software, imaging softare - Ghost/Acronis) configured to scan this pickup
> directory.
>
> Lastly - do you have Exchange installed on this machine, or is it IIS SMTP
> only?
>
> Thanks
>
> Cheers
> Ken
>
>
> "Bill H" <you@notreally.com> wrote in message
> news:qPmdnZzMMI0riLnYnZ2dnUVZ_sOdnZ2d@co
mcast.com...
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com