On Fri, 4 Jan 2019 15:20:08 -0500 Viktor Dukhovni <postfix-us...@dukhovni.org> wrote:
> > On Jan 4, 2019, at 2:56 PM, Celejar <cele...@gmail.com> wrote: > > > > And I'm using 3.1.8, where the rewriting isn't acceptable to my mail > > provider, and this feature isn't available ;) So I guess I'm stuck, > > unless I can upgrade Postfix? > > Your other option, if possible, is to inject email into Postfix > with the "From:" header already constructed the way you want. > Postfix only adds "From:" headers when missing. > > You could also use a PCRE REPLACE rule in smtp_header_checks: > > # Replace some legacy "address (display name)" forms with a > # more modern "display name <address>" form. > /^From:\s*([^\s<>]+)\s+\(([^"]*)\)\s*$/ REPLACE From: "$2" <$1> Thanks much - this seems to be working. > The server that's accepting "From: display name <address>" > and rejecting "From: address (display name)" is not blameless > It should be able to process either form. Of course. It's just that I have higher expectations of quality open source software than I do of a commercial mail provider ;) Thanks again for all the help, Celejar