On Mon, Oct 13, 2014 at 04:59:35PM +0200, [email protected] wrote:

>     - import simple rfc2822 parser
>     - import simple rfc822 parser
>     - all headers and data lines now pass through rfc2822 parser
>     - strip Bcc headers
>     - rewrite From, To and Cc headers to append domain if none

This part is kind of tricky and touchy.

Long story short, unless we parse From, To and Cc headers to append the
local domain when missing during an enqueue, then upon relaying to some
other MTA's _they_ will append their local domain with strange results.

Of course, this only happens when the client does not provide a domain,
which most clients do.

So I wrote a very tiny RFC2822 parser to parse the message, then a very
tiny RFC822 parser to extract addresses from some specific headers. The
parsers are not RFC complete but we don't really care, the goal is just
to catch the simple addresses sent by broken MUA's, anything we fail to
parse will simply result in the header being output unmodified.

PLEASE TEST HEAVILY. PLEASE TEST HEAVILY. PLEASE TEST HEAVILY.
       PLEASE TEST HEAVILY. PLEASE TEST HEAVILY. PLEASE TEST HEAVILY.
              PLEASE TEST HEAVILY. PLEASE TEST HEAVILY.

Oh, and please do test heavily.

-- 
Gilles Chehade

https://www.poolp.org                                          @poolpOrg

-- 
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]

Reply via email to