[pfx] Re: preserving multi line header_checks REPLACE

2024-03-08 Thread Wietse Venema via Postfix-users
Viktor Dukhovni via Postfix-users: > On Fri, Mar 08, 2024 at 03:45:42PM -0500, Wietse Venema via Postfix-users > wrote: > > > The postmap command reads input from stdin one line at a time, and > > applies each input line to all the header_checks patterns. It can't > > be used for multiline

[pfx] Re: preserving multi line header_checks REPLACE

2024-03-08 Thread Viktor Dukhovni via Postfix-users
On Fri, Mar 08, 2024 at 03:45:42PM -0500, Wietse Venema via Postfix-users wrote: > The postmap command reads input from stdin one line at a time, and > applies each input line to all the header_checks patterns. It can't > be used for multiline inputs. Time has passed, and you've forgotten that

[pfx] Re: preserving multi line header_checks REPLACE

2024-03-08 Thread Wietse Venema via Postfix-users
Mailinglists35 via Postfix-users: > > Hi > > I run a postfix 3.5.9 smtp relay for a webserver that sends user signup and > forgot password emails. That's the only use case and the server does not > receive any other emails and neither generates any locally. > > I'm trying to prevent

[pfx] Re: preserving multi line header_checks REPLACE

2024-03-08 Thread Viktor Dukhovni via Postfix-users
On Fri, Mar 08, 2024 at 09:23:19PM +0200, Mailinglists35 via Postfix-users wrote: > The postmap input looks like this: > > echo -e"Received: from [127.0.0.1] (web1dev [10.11.12.13])\n\tby > email.domain.tld (Postfix) with ESMTPS id C9056 >7E002\n\tfor ; Fri,8 Mar 2024 19:20:29

[pfx] Re: preserving multi line header_checks REPLACE

2024-03-08 Thread Mailinglists35 via Postfix-users
Solved. I had from previous tries set `regexp` instead of pcre in main.cf header checks After changing to `pcre` it does what I intended to do. > > On Mar 8, 2024 at 9:23, mailto:mailinglist...@gmail.com)> > wrote: > > > > Hi > > I run a postfix 3.5.9 smtp