[Dovecot] strip realms and force lowercasing of usernames?

Jens Laas jens.laas at data.slu.se
Fri Jun 10 11:13:59 EEST 2005


(05.06.09 kl.15:53) Dan Hollis skrev följande till Timo Sirainen:

> On Fri, 10 Jun 2005, Timo Sirainen wrote:
>> On Thu, 2005-06-09 at 13:21 -0700, Dan Hollis wrote:
>>> What I want is for dovecot to strip realms and force lowercase of
>>> usernames _before passing them to pop3-login or pam for authentication_
>>> So if a user tries to login as "SoMEuSERNAme at msn.com" it actually
>>> authenticates them as "someusername". Stripping the realm and lowercasing
>>> the name _before checking it against the passwd/shadow files_.
>>> Other pop3 servers like teapop have explicit support for this.
>> Sounds pretty ugly and kludgy feature. If you used SQL database to store
>> users, you could easily do this.
>
> No more ugly and kludgy than default_mail_env.
>
> All that's needed is something to mangle logins. In fact the logic would
> be very similar to default_mail_env.
>
> We don't use SQL database to store users and moving to such would incur
> great time and effort (and require major reworking of all our mail
> system). So it's a non-option.
>
> Like I said, other pop3 servers like teapop have explicit support for
> this. It would be nice if we could move to dovecot without loss of
> functionality.

I think this should be possible to implement as a PAM module.

/Jens

>
> -Dan
>

-----------------------------------------------------------------------
     'This mail automatically becomes portable when carried.'
-----------------------------------------------------------------------
     Jens Låås                              Email: jens.laas at data.slu.se
     Department of Computer Services, SLU   Phone: +46 18 67 35 15
     Vindbrovägen 1
     P.O. Box 7079
     S-750 07 Uppsala
     SWEDEN
-----------------------------------------------------------------------



More information about the dovecot mailing list