Hi, Am 29.10.19 um 00:39 schrieb Wietse Venema: > Sven Bartscher: >> My first intuition on how to fix this, wasn't actually to change the >> logging drastically, but to add escaping for characters that usually >> have special meaning in the address. As an example >> >> As an example I would log this address >> >> "x@y.z> from=<a@b.c> to=<\x@y.z"@example.com >> >> somewhat like this >> >> to=<x@y.z\> from=\<a@b.c\> to=\<\\x@y...@example.com> > > Make the backslash character special when logging the sender in > Postfix reject messages? Bleh. > > I would prefer consistency, i.e. always log a sender or recipient > address in proper externalized form. > > from=<"x@y.z> from=<a@b.c> to=<\\x@y.z"@example.com > > There is a library function tok822_externalize() for doing the above > conversion. There are not that many places where =<%s> is called > with an address, so this is just some work. This avoids the need > to propagate both address versions through all of Postfix.
That does seem like a sensible way forward. However, after reading your last message, I was under the impression, that you were opposed to logging something other than the internal form, because it makes table lookups harder to debug. Can you clarify your stance on this? Regards Sven
signature.asc
Description: OpenPGP digital signature