Discussion Locked

IIS 4.0 .eml IIS 5.0 .eml file format

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Can someone confirm this for me?

Set up a fresh IIS 4.0 SMTP server on an NT machine. Telnet to the server and type in the following.

HELO test
MAIL FROM: minkus@ntlworld.com
RCPT TO: test@(hostname of the computer)
DATA
Three dots
...
Two dots
..
One dot
.
QUIT

Now go to your inetpub\mailroot\drop folder and look at the .eml file stored there.

Then do the same on a Win2k server with IIS 5.0. Let me know if the resulting .eml files are any different.

6 replies

by christopher hill

By the way, I'm looking in particular at how many dots are saved in the file. I *think* that IIS 5.0 saves them with one dot taken off each time (ie .. then . then nothing), and IIS 4.0 saves them as-is (ie ... then .. then .)

If you can get a freshly installed SMTP server that would be great, but doesn't matter if not so long as the settings haven't been changed too much.

by shmaltz

According to RFC 822 (I think it's 822, if not it's one of the others that define SMTP). A single dot on an empty line means end of the data command. If a dot is suppose to be transmitted as part of the message, then 2 dots are put in, the first oneis to tell SMTP that the following one is a dot that should be transmitted.
I don't know why IIS 4.0 behaves differently, and I don't have an IIS 4.0 mahcine to be able to test it.

by christopher hill

Yep, I'm aware of SMTP transparency. Actually it's only if the dot is at the beginning of the line that you should double-pad it. I suspect, however, that IIS 4 and IIS 5 handle the storage of double-padded dots differently, which is what I'm tryingto find out.

by christopher hill

Found out the answer from an alternative source. Helpfully, under IIS 4.0 emails are stored 'as is' - that is, when a line starts with a period, and that period is sent by SMTP as a double period (in order to satisfy SMTP Transparency requirements),IIS 4.0 will store them in the .eml file with a double period.

IIS 5.0 and later appear to remove the double period while storing the messages. Why? Who knows? Why do I need to know? Look up MS2EMWAC on Google and you'll understand.

This discussion is closed to new replies.