What is a limit (if exists) character limit in this map for one query
smtpd_sender_login_maps =
proxy:ldap:/etc/postfix/ldap_sender_login_maps.cf - for
reject_sender_login_mismatch
I create a one record with ~120 e-mail (It doesn't work for some
endpoints)
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.
With login mismatch you shouldn't be returning all of the aliases a user
is allowed to use, you should be returning the one email/username that
the user should be logged into to use the alias in the From field of the
email.
Don't do: SELECT alias FROM accounts WHERE email='%s' <-- Many results
returned
Do this: SELECT email FROM accounts WHERE alias='%s' <-- One result
returned
(* Don't copy that exact query syntax, it's just an example in concept)