On 28/10/2020 16:23, Wietse Venema wrote: > Viktor Dukhovni: >>> On Oct 27, 2020, at 11:42 PM, John Stoffel <j...@stoffel.org> wrote: >>> >>> Could someone have an email address of "uid:j...@some.place.home" down >>> the line? >> >> The lookup key is a login name, given the syntax of the passwd(5) >> file, no ":" characters can appear in a login name. > > However, one goal was to also expose this functionality in the smtps > and submission services, where the login syntax is not constrained by > UNIX password-file rules. > > The specific form "uid:u...@example.com" won't collide with > "uid:[0-9]+", but other forms could. Perhaps we should make the > prefix for numerical UIDs configurable.
Maybe it is a dumb idea, but what about using a prefix character that is guaranteed not to be part of either local user names or email addresses local parts? I believe the @ character is forbidden in both (although it may be a bit confusing). Cheers, Dan