Claus Assmann:
> > For Sendmail compatibility, Postfix does not show the first header
> > line. I suggest that you put new content further down in the message.
> 
> Does "the first header line" refer to the (locally added) Received:
> header?

Hi Claus. Yes, Postfix does not send its own Received: header to
the Milter (or whatever the first line is after Milters have modified
the message).

>  If so, sendmail doesn't provide that to a milter as it is
> not sent by the client.  However, sendmail is supposed to follow
> this description:
> 
>   * For smfi_chgheader, filter order is important. Later filters
>     will see the header changes made by earlier ones.

I made an attempt to make "insert at the top" compatible with
Sendmail, and gave up 9 years ago.

     * XXX Sendmail compatibility. Don't expose our first (received) header
     * to mail filter applications. See also cleanup_milter.c for code to
     * ensure that header replace requests are relative to the message
     * content as received, that is, without our own first (received) header,
     * while header insert requests are relative to the message as delivered,
     * that is, including our own first (received) header.

I wonder if anything would break (other than Postfix backwards
compatibility) if I were to provide an option to make "Milter "header
insert" requests relative to the header that follows Postfix's own
Received: header.

        Wietse

Reply via email to