Wietse Venema:
> Sebastian Wiesinger:
> > Hello,
> > 
> > the documentation states:
> > 
> > The milter_header_checks mechanism could also be used for
> > whitelisting. For example it could be used to skip heavy content
> > inspection for DKIM-signed mail from known friendly domains.
> > 
> > I want to do that for mail that passes DMARC checks (with 2.11.2 DMARC
> > became easy to implement thanks to the milter change).
> > 
> > But looking at header_checks(5) I can't see a good ACTION for doing
> > it. PERMIT is not listed, OK is treated at DUNNO...
> 
> Ihe action is to be implemented IN THE HEAVY CONTENT FILTER.

Another option is to have:

/etc/postfix/main.cf:
    content_filter = smtp:input-of-after-queue-content-filter

/etc/postfix/milter_header_checks:
    /^flagged as authentic/ content_filter = smtp:after-filter-smtp-service

Where after-filter-smtp-service is the SMTP service that follows
the after-queue-content-filter.

Thus, allowing authentic mail to skip the content filter.

        Wietse

Reply via email to