On 2021-11-20 22:03, Viktor Dukhovni wrote:
On Sat, Nov 20, 2021 at 07:37:56PM -0800, Mel Pilgrim wrote:
I need Postfix to be case-preserving.
Postfix does not change the case of recipient addresses unless you
rewrite them (virtual(5) or local aliases).
Earlier you said you want case-sensitive map lookups (preserve case of
table lookup keys), which not the same thing as preserving the output
case or just leaving the address as-is if not rewritten.
Which is it?
All of the above. I need Postfix to be case-preserving end-to-end, part
of which is having database drivers not case-fold query strings. This
started with a narrow question about disabling lookup driver
case-folding, and has since grown in scope a bit, so I shifted
terminology to the more general. Sorry for the confusion.
One might reasonably argue that the LDAP driver shoul not have folded
case in the first place, because unlike SQL, LDAP supports and generally
has case insensitive attribute definitions for "mail", "maildrop", ...
But at this point it is unclear who's relying on the current behaviour,
so changing LDAP to not case by default does not seem like a safe
choice. It would be easy to customise just the LDAP driver to
take an extra named property in the table definition.
casefold = no
If you submit a patch for that, I'd support it.
Easily done. Is there a repo to clone/checkout or do I download the
latest experimental release tarball and patch against that? Where do I
send patches?