[Dovecot] IMAP login name conversion

Timo Sirainen tss at iki.fi
Wed Jun 2 04:39:42 EEST 2004


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 at joedomain.com.au, info at adomain.com, 
> info at 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://dovecot.org/pipermail/dovecot/attachments/20040602/81f8357e/attachment-0001.bin>


More information about the dovecot mailing list