On Mon, Aug 30, 2021 at 09:09:26AM -0400, [email protected] 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 = proxy:ldap:/etc/postfix/ldap_sender_login_maps.cf
> > 
> > I create a one record with ~120 e-mail (It doesn't work for some 
> > endpoints)

Your non-verbose logs would be helpful at this point.  ("It doesn't work"
is not particularly detailed).

> 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.

The table syntax is:

    key = sender email address
    value = *list* of SASL login names

so clearly returning multiple values is correct, when multiple logins
are allowed to use the sender address.

This is not rocket science, the parameter syntax is documented.

> 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.

-- 
    Viktor.

Reply via email to