On Sun, Oct 12, 2014 at 09:46:15PM +0200, Robert Schetterer wrote:

> For bizarre Sendmail compatibility reasons, Milters don't see the
> first header in the message. Changing that would cost me at least
> a day to ensure that it breaks nothing with "add header", "delete
> header", etc. requests.

Milters are supposed to see the original message content exactly
as received over the wire.  For consistency, Postfix could at some
point be enhanced to ensure this is the case regardless of the
number of header lines prepended via access checks.  The current
behaviour that assumes a single prepended "Received" header is
arguably incorrect.

That said, I think you should not mix content inspection models.
When using milters, don't prepend headers via Postfix access rules.
Do that in a milter.  Presumably milter chaining allows a second
milter to see headers added by a previous milter.  And of course
there are now milter multiplexors that look like a single milter
to Postfix.

Perhaps backwards compatibility considerations preclude "fixing"
the current header offset logic, but I think it is unwise to rely
on "creative" work-arounds.

-- 
        Viktor.

Reply via email to