A feature I think would be nice. When a single IP hosts email for multiple domains the solution is usually to use the complete email address as the username. I have users that have migrated from Cobalt RAQ's which do not work like that. If a user trys to authenticate with just there username such as "joeb" instead of joeb at dirt.com I would like Dovecot to check all the domains it hosts and if it only finds one with the username "joeb" assume thats the one. If multiple domains have the username "joeb" refuse to authenticate without the "@domain" part. Perhaps this is not possible. Sure would be handy though. Oh, it would also be nice to automatically lowercase all usernames before authentication. Matt
Jakob Hirsch
2005-Nov-01 01:36 UTC
[Dovecot] Usernames and Passwords for Virtual Users Request
Matt wrote:> If a user trys to authenticate with just there username such as "joeb" > instead of joeb at dirt.com I would like Dovecot to check all the domains > it hosts and if it only finds one with the username "joeb" assume thatsSadly, you told nothing about how you store your user data. I simply presume it's in some sql database. I had the same problem when we converted from system users to user at domain logins. So I stored the system users that where used for mail in a separate column in the users table and used a query like SELECT ... WHERE (user='%n' AND domain='%d') OR old_login='%u' This will even work with multiple domains having the same username.> also be nice to automatically lowercase all usernames before > authentication.Use the substitution modifiers, e.g. %Lu