Bill Cole via Postfix-users:
> On 2026-01-11 at 13:55:49 UTC-0500 (Sun, 11 Jan 2026 10:55:49 -0800)
> Randy Bush via Postfix-users <[email protected]>
> is rumored to have said:
>
> > two MX targets where i am trying to redirect detedted spam from one to
> > be accumulated on the other. the detector (m1) rspamd adds X-Spam:
> > header, and the receiver sees that header and postfix rejects because
> > of
> >
> > header_checks = regexp:{ {/^X-Spam(-Flag)?:[[:blank:]]*YES/ REJECT}
> > }
> >
> > [ ghu knows where i got that complex regexp ]
> >
> > how do i hack that to accept iff recipient is local user named `spam`
> > or
> > semantic equivalent?
>
> You switch to a milter or a policy filter.
>
> The Postfix header_checks facility is (as documented) not able to do
> anything other than evaluate a single header at a time.
milter-regex supports patterns that deemd on the envelope (recipient
etc.) and header content.
Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]