Re: [Exim] CRLF input through pipe causes mangled headers

Top Page
Delete this message
Reply to this message
Author: Sheldon Hearn
Date:  
To: barryp
CC: James P. Roberts, exim-users
Subject: Re: [Exim] CRLF input through pipe causes mangled headers
On (2003/07/19 10:52), barryp@??? wrote:

> I used tcpdump to take a look at the traffic Exim was generating
> both for SMTP and LMTP delivery of these CRLF terminated messages,
> and found that Exim *is* modifying the message bodies, adding an
> extra CR, so the lines end up transmitted over the wire with CRCRLF
> terminations.
>
> So Exim is already violating point #1, but it has to, because
> as Philip said - it's a Unix world, and most files have just LF
> termination. Exim usually needs to add CR to make it legal SMTP -
> it's just that in this case, they're already there, but unfortunately
> Exim is just blindly adding some more.


Hang on, you're misunderstanding the results you see. You're looking at
the message "in transit", where it's governed by network transport
rules. Those extra CRs you're seeing are removed at the other end of
the transport pipe, as mandated by the standards.

What we're talking about, with respect to changing message bodies, is
that Exim shouldn't make changes that are visible OUTSIDE the scope of
transport. This is also mandated (to varying degrees depending on
context) by the standards.

Ciao,
Sheldon.