On 2021-07-22 at 14:46:07 UTC-0400 (Thu, 22 Jul 2021 14:46:07 -0400) <post...@ptld.com> is rumored to have said:
>> 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. > > Understood. > > >> 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. > > Thanks, i will checkout doing a milter in one of those scripting languages. If you can write simple Perl, MIMEDefang is a mature milter that is configured by way of subroutine implementations for each SMTP stage that can do anything you can can write Perl for (so, basically, anything.) It also can all AV engines and SpamAssassin if you like, and it also has a robust capacity to manipulate messages as MIME objects to do things like adding boilerplate signature blocks, remove dangerous attachments, or strip out superfluous HTML. -- Bill Cole b...@scconsult.com or billc...@apache.org (AKA @grumpybozo and many *@billmail.scconsult.com addresses) Not Currently Available For Hire