Network Administration
2003-11-14 19:54:04 UTC
This is kind of strange.
I'm the Net Admin for Alyrica Networks, an Oregon-based ISP. Some time after we switched from Sendmail to Qmail with Maildir, I began recieving complaints about Outlook Express POP3 "sticking" on messages: a user with 10 messages in their mailbox would download 4, and then hang and time out while downloading the 5th. The problem could only be resolved in each case by deleting the message that "stuck", in this case that 5th message. If the 5th message were not deleted, the user would never be able to retrieve the rest of their mail.
After looking into the problem, I discovered that some copies of OE would have problems like this, and some would not. Identical versions of Outlook Express on different computers would act differently: One would hang, and another would work but place headers in the message body.
Remember, this problem was rare. Only some clients, and only some messages. We would get maybe 1-2 calls a month about this issue.
After looking into the problem, I found that the offending messages were those which had intact \r\n in their headers, _on_the_server_. In other words, messages were getting through qmail-smtpd without having \r\n replaced with \n.
When the MTA went to download these messages, the \r\n was replaced with \r\r\n (part of the normal Unix -> PC conversion process, but in this case run amok due to the extra \r). When OE sees \r\r\n, it thinks "End of headers" and puts everything following into the message body.
I suspect that the mail agents generating these messages are leading the headers with a \r\n\r\n, but I have been unable to prove it. In any case, I'm left wondering if anyone else is having similar problems. This problem is rare, and even when it occurs it only hangs some versions of OE. Any suggestions?
Joseph
I'm the Net Admin for Alyrica Networks, an Oregon-based ISP. Some time after we switched from Sendmail to Qmail with Maildir, I began recieving complaints about Outlook Express POP3 "sticking" on messages: a user with 10 messages in their mailbox would download 4, and then hang and time out while downloading the 5th. The problem could only be resolved in each case by deleting the message that "stuck", in this case that 5th message. If the 5th message were not deleted, the user would never be able to retrieve the rest of their mail.
After looking into the problem, I discovered that some copies of OE would have problems like this, and some would not. Identical versions of Outlook Express on different computers would act differently: One would hang, and another would work but place headers in the message body.
Remember, this problem was rare. Only some clients, and only some messages. We would get maybe 1-2 calls a month about this issue.
After looking into the problem, I found that the offending messages were those which had intact \r\n in their headers, _on_the_server_. In other words, messages were getting through qmail-smtpd without having \r\n replaced with \n.
When the MTA went to download these messages, the \r\n was replaced with \r\r\n (part of the normal Unix -> PC conversion process, but in this case run amok due to the extra \r). When OE sees \r\r\n, it thinks "End of headers" and puts everything following into the message body.
I suspect that the mail agents generating these messages are leading the headers with a \r\n\r\n, but I have been unable to prove it. In any case, I'm left wondering if anyone else is having similar problems. This problem is rare, and even when it occurs it only hangs some versions of OE. Any suggestions?
Joseph