Viktor Dukhovni:
> > On 22 Jul 2021, at 12:33 pm, [email protected] wrote:
> >
> > Is there any chance of the policy server in the future adding a feature to
> > include the mail body in the attributes?
>
> No. If you want to inspect the body prior to accepting the message into
> the queue, use the existing smtpd_proxy_filter and/or milter features.
>
> http://www.postfix.org/SMTPD_PROXY_README.html
> http://www.postfix.org/MILTER_README.html
The SMTP policy delegation service has access only to SMTP commands
and SMTP connection state, just like smtpd_mumble_restrictions, and
that will not change.
If you need to see both SMTP commands/connections and message
content, use one of the approaches listed above. If there is no
ready-to-use implementation that meets your needs, Milters can be
implemented in python, perl, rust, java, php, C, and more.
Wietse