On 25/04/2019 00:21, Wietse Venema wrote:
Mick:
I thought header checks were carried out after all the other smtp
restrictions had passed therefore I didn't see the harm in an 'OK' for a
message header at this stage.
Correct, but the OK action applies only to that header, not the
message.
Thanks Wietse, that makes sense now. I think you're saying : Regardless
of whether the first file (white list) matched an OK from List-Id:, the
second file (black list) would still be checked. As the 'OK' only
applied the List-Id: header, if the second header checks file matches a
reject pattern other than List-ID, message will be rejected.
The Postfix 3.2 PASS action applies to the message,
but remains unused when a REJECT pattern is matched earlier.
PASS is something I shall look forward to in the next couple of years.
For now I'm on 3.1.9 (Debian stable).
I don't suppose there's a way to read the status List-Id (possibly
matched and OK'd in the first pass - white list) while reading the From
in the second pass (black list)? I think not, but asking just to rule it
out.
Thanks for your explanation as to how it works.
Best wishes,
Mick.
Wietse