On Wed, 2004-06-02 at 02:51, Zoong Pham wrote:
I can use mutt to access my mailbox via IMAPS with login name format joedirt-joedomain_com_au.
Other users use different MUA like Outlook and prefer to login with their email addresses (joedirt@joedomain.com.au, info@adomain.com, info@otherdomain.com) .. My question is how to achieve the same thing with other MUAs like Outlook? Do I have to modify dovecot source? Can I use LDAP or SQL instead?
I think that kind of conversion is too much of a special case that Dovecot should try to make it easy with internal features.
With PostgreSQL authentication you would be able to use functions to modify the login name in wanted way:
password_query = select password from users where userid = '%n-' || translate('%d', '.', '_');
If you don't want to do that, you'll have to modify the sources. For example in src/auth/mech-plain.c