Re-looking at my config, I set up Postfix to
1) receive via postfix
2) hand off what passes postscreen and the body_checks to amavis
So I have
master.cf
[mx.example.com]:25 inet n - n - 1 postscreen
-o smtpd_service_name=ps-int
ps-int pass - - n - - smtpd
-o receive_override_options=no_address_mappings
-o smtpd_authorized_xforward_hosts=127.0.0.0/8
-o smtpd_client_connection_count_limit=20
-o smtpd_proxy_filter=127.0.0.1:50000
-o smtpd_proxy_options=speed_adjust
-o smtpd_proxy_timeout=300s
-o syslog_name=postfix/ps-int
..........
Which then hands-off to amavisd listening on 127.0.0.1:50000
Like I said above, and verified with postconf,
main.cf
..........
body_checks=pcre:/etc/postfix/body_checks.pcre
..........
IIUC the 'ps-int' smtpd instance should be using body_checks from main.cf.
So this should work, right?
Unless ... the body_checks doesn't happen soon enough? And it gets passed to
Amavisd *before* ever hitting that check?
Do I need some kind of a separate additional smtpd instance in there to pass
to FROM ps-int BEFORE passing to the Amavisd filter?
Thanks,
Billy