From: http://www.postfix.org/FILTER_README.html
/etc/postfix/master.cf:
# =============================================================
# service type private unpriv chroot wakeup maxproc command
# (yes) (yes) (yes) (never) (100)
# =============================================================
smtp inet ...other stuff here, do not change... smtpd
-o content_filter=filter:dummy
The "-o content_filter" line causes Postfix to add one content filter
request record to each incoming mail message, with content
"filter:dummy". This record overrides the normal mail routing and causes
mail to be given to the content filter instead.
Until reading the above many times, based on previous discussions here,
I was under the impression that even with content_filter enabled here as
an after queue filter, messages rejected by smtpd_foo_restrictions or
header_checks would indeed be rejected instead of being piped to the
content_filter.
The above documentation seems to suggest that every message entering via
the smtpd service will be routed to the content_filter no matter what,
making all smtpd_foo_restrictions useless. Please tell me I'm
misreading the above, that smtpd_foo_restrictions take precedence over
content_filter implemented as above in master.cf.
Thanks.
--
Stan