Alessandro Vesely writes:
Sam,when MAL wrote me about this bug I thought it was a sendmail idiosyncrasy. Hefound that a long display phrase makes the From: header wrapped. I checked several DKIM validators and found (only) one of them succeeded; that is, the From: line wasn't wrapped, like in local bcc's. After further investigation I found out that Courier smtp client wraps header lines longer than 70 (rfc822_getaddrs_wrap). Sendmail unwraps the newline to work around a Lotus Notes quirk which used to cause some misbehavior in some clients. I'm not clear whether esmtpclient only wraps in some cases orApplemail (the server that hosts the succeeding test) does a better unwrappingby also removing the two additional spaces. All of that seems to be buriedquite deeply in email history. If you recollect any details, I'll forward thatto the folks at opendkim who helped me understanding this oddity. For outbound mail, the obvious workaround is to use the "relaxed" DKIM header canonicalization, which disregards whitespace. Some may prefer to skip the rewriting entirely, but I have no idea of the pros and cons of it. "Simple" canonicalization would be better in case whitespace matters. Is it worth making the rewriting configurable? For inbound mail, rewriting doesn't seem to take place. Correct?
The default configuration always rewrites and standardizes the headers.There's actually a NOADDRREWRITE setting in the esmtpd configuration file, which can be used to disable it. And, as documented, it can be set to disable canonicalization only for mail that has a DKIM signature.
It should be possible to hack NOADDRREWRITE for mail submitted locally, by setting it via an opt in the bofh configuration file:
opt NOADDRREWRITE=1But, unless it's also overriden in the esmtpd config file, this is going to take effect for all mail.
pgp6Inwal9WBm.pgp
Description: PGP signature
------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users