On Sun, 11 Jan 2026 13:37:50 -0800,
Randy Bush via Postfix-users wrote:
> milter-regex supports patterns that deemd on the envelope (recipient
> etc.) and header content.
so something such as
/etc/postfix/main.cf:
milter_header_checks = regexp:/etc/postfix/milter_header_checks
Just so you know, this is NOT milter-regex but builtin milter output processing
/etc/postfix/milter_header_checks:
accept
/Received: from m1.rg.net/
reject
/^X-Spam: YES/
the moon is in klutz, so it can't be that simple :)
On 11.01.26 18:44, Randy Bush via Postfix-users wrote:
too good to be true
2026-01-12T02:40:48.879489+00:00 m1 postfix/cleanup[81810]: warning: regexp map
/etc/postfix/milter_header_checks, line 1: ignoring unrecognized request
2026-01-12T02:40:48.879757+00:00 m1 postfix/cleanup[81810]: warning: regexp map
/etc/postfix/milter_header_checks, line 2: no replacement text: using empty
string
2026-01-12T02:40:48.879879+00:00 m1 postfix/cleanup[81810]: warning: regexp map
/etc/postfix/milter_header_checks, line 4: ignoring unrecognized request
2026-01-12T02:40:48.880001+00:00 m1 postfix/cleanup[81810]: warning: regexp map
/etc/postfix/milter_header_checks, line 5: no replacement text: using empty
string
you have invalid syntax there, see:
http://www.postfix.org/access.5.html
/Received: from m1.rg.net/ ACCEPT
/^X-Spam: YES/ REJECT
or possibly
/Received: from m1.rg.net/
ACCEPT
/^X-Spam: YES/
REJECT
the whitespace before ACCEPT and REJECT is required to be considered as
continuation of previous line.
--
Matus UHLAR - fantomas, [email protected] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Windows found: (R)emove, (E)rase, (D)elete
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]