On 08/11/2024 16:44, Randy Bush via Postfix-users wrote:
> 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.
>
>     imaphost:/home/randy> egrep -aci "^X-Spam.*YES" mail/newspam
>     61
>
> and i do not think i am hitting 
>
>     This feature is not supported with smtp header/body checks.
>
> from
>
>     https://www.postfix.org/header_checks.5.html 's
>     REJECT optional text clause
>
> though perhaps `smtpd_recipient_restrictions` is in that conflict set.
> i am not at all clear on this.  heck, i am not clear on much :)
>
>
Thinking at a complete tangent, have you tried the PostScreen  pre-filter 
(built in to Postfix)?

With my particular mix of inbound junk mail, only about three a week make it 
into the mail server.

Just a thought...

Allen C

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

Reply via email to