Viktor Dukhovni: > On Sun, Oct 25, 2020 at 02:46:26PM -0400, Wietse Venema wrote: > > > postfix-3.6-20201025 has a preliminary implementation to limit the > > envelope senders that a local user may specify to the Postfix > > sendmail (or postdrop) command. The real work is done in a library > > module, so that similar functionality can later be added to the > > Postfix SMTP daemon. > > Nice! A nit correction and a question: > > - Typo: in example: > > --- proto/postconf.proto > +++ proto/postconf.proto > @@ -17947,7 +17947,7 @@ address when the '@' and <i>domain</i> part match. > </dd> > <pre> > /etc/postfix/login_senders: > # Allow both the bare username and the user@domain forms. > - /(.+)/ $1 $1...@example.com/ > + /(.+)/ $1 $1...@example.com > </pre>
Ack. > <p> This feature is available in Postfix 3.6 and later. </p> > > - Question, with "#" as the prefix for numeric uids, how is one supposed > to create indexed tables with these as lookup keys? The below looks > like a comment to me: > > #12345 anonym...@example.com Yes, this would limit the usability to PCRE, LDAP, *SQL. Postmap does not expand \ddd octal sequences in its input. What about making the '#' a suffix instead? That is still unlikely to clash with existing user naming schemes. BTW I realize that there is no unit test for numerical UIDs; that needs to be fixed, too. Wietse