RE: [Dovecot] IMAP login name conversion
-----Original Message----- From: Timo Sirainen [mailto:tss@iki.fi] Sent: Tuesday, 1 June 2004 9:39 PM To: Zoong Pham Cc: dovecot@dovecot.org Subject: Re: [Dovecot] IMAP login name conversion
What passdb and userdb do you use? Unless you're authenticating from SQL you probably have to modify the source.
Let me explain: My server runs OpenBSD-3.5 and Sendmail. We host few virtual domains. Local accounts have login names in this format: login-domain_abc_xyz For example: joedirt-joedomain_com_au, info-adomain_com, info-otherdomain_com
That way login accounts are unique across all the virtual domains.
I use the OpenBSD pre-compiled dovecot-0.99.10p2. It is set to use "auth_passdb = passwd" and "auth_userdb = passwd"
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)
We use squirrelmail for webmail. I modified squirrelmail to automatically convert login name from format of joedirt@joedomain.com.au to joedirt-joedomain_com_au. So if users use squirrelmail, they can just login with their email addresses.
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? Note that we are using Sendmail and prefer it than othe MTA.
I have looked at the Wiki, specially the "DovecotOpenLdap" but am still confused.
Thanks Zoong
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
Zoong Pham wrote:
-----Original Message----- From: Timo Sirainen [mailto:tss@iki.fi] Sent: Tuesday, 1 June 2004 9:39 PM To: Zoong Pham Cc: dovecot@dovecot.org Subject: Re: [Dovecot] IMAP login name conversion
What passdb and userdb do you use? Unless you're authenticating from SQL you probably have to modify the source.
Let me explain: My server runs OpenBSD-3.5 and Sendmail. We host few virtual domains. Local accounts have login names in this format: login-domain_abc_xyz For example: joedirt-joedomain_com_au, info-adomain_com, info-otherdomain_com
That way login accounts are unique across all the virtual domains.
I use the OpenBSD pre-compiled dovecot-0.99.10p2. It is set to use "auth_passdb = passwd" and "auth_userdb = passwd"
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)
We use squirrelmail for webmail. I modified squirrelmail to automatically convert login name from format of joedirt@joedomain.com.au to joedirt-joedomain_com_au. So if users use squirrelmail, they can just login with their email addresses.
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? Note that we are using Sendmail and prefer it than othe MTA.
I have looked at the Wiki, specially the "DovecotOpenLdap" but am still confused.
Thanks Zoong
I fail to see your problem.
Outlook and other MUA's login to pop and imap servers with the settings that you put in. Yes, it's easier for the user if you say just put your email address in that box, but you can just as easily tell them to put joedirt-joedomain_com_au as joedirt@joedomain.com.au and then it will work. Remember, this setting is just the login to the server, the email address that the world sees is a different setting. This is a setting that only has to be setup once, so it shouldn't be a big deal unless you have a **lot** of users that you have to explain this to.
Unless I've totally missed something, of course.
Mike
participants (3)
-
Michael Surette
-
Timo Sirainen
-
Zoong Pham