Wietse Venema via Postfix-users wrote in <4bgqh45qyzzj...@spike.porcupine.org>: |oftl--- via Postfix-users: |> On Mon, Jul 14, 2025 at 06:01:20PM +1000, Viktor Dukhovni via Postfix-us\ |> ers wrote: |>> On Sun, Jul 13, 2025 at 09:12:28PM +0200, oftl--- via Postfix-users \ |>> wrote: |>> |>>> Have an already up and running postfix *also* relay everything \ |>>> to another postfix. |>> |>> Yes, via an envelope-recipient preserving PCRE recipient Bcc table, and |>> helper machinery to route and unmunge the addresses. |> |> Looks very interesting. But unfortunately there's no regexp support \ |> available. |> And the installations of postfix and OS are quite old. Old enough, \ |> so that i |> seriously do not want to touch it as long as the (currently dying) \ |> hardware |> works. | |This could also be done with a regexp: table. This use case does |not require PCRE's expressiveness and speed. ... | /^"(.*)"@(.*)$/ "rcpt-bcc-${1}=${2}"@bcc.invalid | /^(.*)@(.*)$/ rcpt-bcc-${1}=${2}@bcc.invalid | | bcc-generic.regexp: | /^"rcpt-bcc-(.*)=(.*)"@bcc\.invalid$/ "${1}"@${2} | /^rcpt-bcc-(.*)=(.*)@bcc\.invalid$/ ${1}@${2} | |Verified with | | postmap -q - 'pipemap:{regexp:rcpt-bcc.regexp,regexp:bcc-generic.regexp\ | }' | |for quoted and unquoted localparts.
And partially quoted? I have a bit of problems with ABNF, so i think local-part = dot-atom / quoted-string / obs-local-part means "either dot-atom OR quoted-string", so tests like that from my IMF parser (which requotes quoted display-names etc so that ie dictionary lookups on unique keys would match a"b"c "ab"c a"bc" etc via "abc") "j ( GoOd ) d\t\"o\" e\t@ t7 . ex ( johnny ) ", "\0\0\"jdoe\"\0t7.ex\0GoOd johnny\0", could even be invalid syntax turned to something good (RFC 5322 maximally has <pete(his account)@silly.test(his host)> which does not help), but obs-local-part aka obs-local-part = word *("." word) word = atom / quoted-string would at least imply that in between dots partially quoted strings could occur. This is nothing postfix worries about, and obs-local-part is not supported? --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt) | |During summer's humble, here's David Leonard's grumble | |The black bear, The black bear, |blithely holds his own holds himself at leisure |beating it, up and down tossing over his ups and downs with pleasure | |Farewell, dear collar bear _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org