[Dovecot] strip realms and force lowercasing of usernames?

Andrey Panin pazke at donpac.ru
Thu Jun 9 15:31:16 EEST 2005


On 160, 06 09, 2005 at 01:25:41PM +0100, Andrew Hutchings wrote:
> Dan Hollis wrote:
> >Is it possible for dovecot to strip realms and force lowercasing of 
> >usernames?
> >
> >We have a lot of dumb customers who try logging in to pop3 with crap like 
> >UsERNAmE and bla at nonexistentdomain.com. All our usernames are lowercase 
> >and we have no realms. Trying to get hundreds of customers to fix this is 
> >hard and is a significant and costly support burden.
> >
> >It would be nice if dovecot could handle this in some way.
> >
> >-Dan
> >
> Hi Dan,
> 
> In your default_mail_env if you use %n instead of %u you will get the 
> domains stripped.  As for lowercase that is a feature I would like to 
> see, I will see if I can code it tonight.

Quoting from doc/variables.txt:

You can apply a modifiers for each variable (eg. %Lp = pop3):

 %L - lowercase
 %U - uppercase
 %E - escape '"', "'" and '\' characters by inserting '\' before them.


-- 
Andrey Panin		| Linux and UNIX system administrator
pazke at donpac.ru		| PGP key: wwwkeys.pgp.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://dovecot.org/pipermail/dovecot/attachments/20050609/70252c2e/attachment-0001.bin>


More information about the dovecot mailing list