ecsd:
> The logs show that postfix examines the recipients before the milter is 
> given the chance to see them.

Indeed. Milter sees only things that Postfix is willing accept,
after Postfix has had a chance to modify it. I am pretty sure that
is how they are supposed to be used (if Milters were placed upstream,
then they could not be used to sign messages, and signing mail is
an important Milter application).

- Milters see SMTP commands after they pass smtpd_mumble_restrictions
and other Postfix features that may block or modify SMTP commands.

- Milters see email header and body content after header_checks,
body_checks, and header address rewriting, which may block or modify
email message content.

Generally, if you want the Milter to see all SMTP commands and all
message content, then don't block or modify it in Postfix. Instead,
do those things in the Milter.

        Wietse

Reply via email to