On 13/02/2012 14:56, Wietse Venema wrote:
Alex Bligh:
Wietse,

--On 13 February 2012 07:31:58 -0500 Wietse Venema<wie...@porcupine.org>
wrote:

I've read the documentation on header_checks and it only *appears* to
operate on headers received from another server. What I want is

Please point out what text that is, and I will fix it.

See
  http://www.postfix.org/header_checks.5.html

There are two sections, called "FILTERS WHILE RECEIVING MAIL" and "FILTERS
AFTER RECEIVING MAIL" that might be relevant. header_checks is in the
first. Logically speaking, one would expected a "Received:" header to be
added once the mail has been received, i.e. you would need to use a filter
that operated after the mail had been received to catch it. That would
imply header_checks is too early.

There is no statement about remote MTAs, so I don't see how I could
change the text to avoid making that impression.

The documentation needs to state whether Postfix adds its own headers prior to applying filters, or afterwards. In the absence of an explicit statement to the contrary, I would assume after (as some headers are added as a result of the filters being applied). If some headers are added prior to filters being applied and some are added after the filters are applied, then the documentation needs to make it clear which is the case for each header that Postfix can add (or make a statement as to the default and then explicitly state each time its behaviour varies from the default).

In particular, if you have a process called "RECEIVING MAIL" (as in "FILTERS WHILE RECEIVING MAIL") then logically, one would expect Received headers be added after that process is complete, as until it is complete the mail has not yet been received.

Mark
--
 Sent from my Babbage Difference Engine 2
 http://mark.goodge.co.uk

Reply via email to