I'm looking for a way to have multiple email accounts to which other users can log in using their logins and passwords in the same way as master user.
by adding additional table in my system I could control the access.
The problem is that dovecot can send to the sql query only domain or master user name, but not complete login ( account_name*master_user_login) or separately the account name. Is there an undocumented shortcut like with the '%; that provides that info ?