Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use usermap? #57

Open
hemml opened this issue Jun 26, 2022 · 1 comment
Open

How to use usermap? #57

hemml opened this issue Jun 26, 2022 · 1 comment

Comments

@hemml
Copy link

hemml commented Jun 26, 2022

I'm using ldap auth and users can login with their usernames (without @domain component), but I want also allow them to use "username@mydomain" logins, because some imap clients using this in auto-configuration.

I have added a record into dbmail_usermap:

 login | sock_allow | sock_deny |    userid
-------+------------+-----------+--------------
 ANY   |            |           | %s@mydomain

but after that users just cannot login with any login (username or username@mydomain).
What is wrong?

@hemml
Copy link
Author

hemml commented Jun 26, 2022

I have read the manual more carefully and found, what dbmail_usermap works differently, the records like:

login            | sock_allow | sock_deny |    userid
-----------------+------------+-----------+--------------
 user@mydomain   |            |           | user

works and I have added records for all my users as a workaround.
But, it will be nice to have wildcards here. Or an option like login_ignore_domain_part=yes in the config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant