Re: limit record in map

2021-08-31 Thread Viktor Dukhovni
> On 31 Aug 2021, at 4:06 pm, post...@ptld.com wrote: > >> The query should be returning any of the "aliases" (email addresses), > > I think our confusion lies in our understanding of the word alias. You just > said it should return the aliases. I believe this to be wrong. It should > return

Re: limit record in map

2021-08-31 Thread postfix
The query should be returning any of the "aliases" (email addresses), I think our confusion lies in our understanding of the word alias. You just said it should return the aliases. I believe this to be wrong. It should return the SASL username that the user is logged in as. Example; I have

Re: limit record in map

2021-08-31 Thread Viktor Dukhovni
On Tue, Aug 31, 2021 at 02:59:09PM -0400, post...@ptld.com wrote: > >> With login mismatch you shouldn't be returning all of the aliases a > >> user is allowed to use, > > > > See above. You have the wrong lookup key, and the wrong value syntax. > > Im sorry my usage of English is difficult

Re: limit record in map

2021-08-31 Thread postfix
You don't want to return multiple emails like that. Your query should include what it is looking for so you just get back the result you need. I am constantly amazed at how some folks just make stuff up, and feel at liberty to suggest impress it upon others. This is of course wrong. With

Re: limit record in map

2021-08-31 Thread Viktor Dukhovni
On Mon, Aug 30, 2021 at 09:09:26AM -0400, post...@ptld.com wrote: > > What is a limit (if exists) character limit in this map for one query There is no explicit limit, large results are fine (thousands of entries might incur some performance cost). > > smtpd_sender_login_maps =

Re: limit record in map

2021-08-31 Thread Benny Pedersen
On 2021-08-30 13:45, natan wrote: us...@domain.ltd us...@domain.ltd, user-ali...@domain.ltd, user-alias...@domain.ltd -- key value, must be sngle line only, its hard to see if you really have it single line or not i cant remember if postfix strips space on , value data so make sure