Randy Bush via Postfix-users:
> >> fairly new at trying a scaled postfix install, so i assume it is my lack
> >> of clue.  trying to use milter_header_checks to reject all marked spam
> >> on debian 12 running `mail_version = 3.7.11`
> >> 
> >>     milter_header_checks = regexp:/etc/postfix/milter_header_checks
> >>
> >> with
> >> 
> >>     # cat /etc/postfix/milter_header_checks
> >>     /^X-Spam.*YES/i REJECT
> >> 
> >> seems to let marked headers thhrough to be caught by a procmail filter
> >> on the final destination host.
> > 
> > Please review https://www.postfix.org/regexp_table.5.html#table_format
> > and do pay attention to the 'i' option.
> 
> removed the `i` and they are still getting through.

milter_header_checks cannot see all headers, not even all headers
added by a milter. They only see headers that are added by a milter
that is connected to the cleanup process that implements
milter_header_checks. 

If you add the milters before (or after) a content filter, then the
milter_header_checks must also be configured wiith the cleanup
process before (or after).

Otherwise be prepared to post output from "postconf -nf"
and "postconf -Mf".

        Wietse
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to