[Dovecot] strip realms and force lowercasing of usernames?

Andrew Hutchings info at a-wing.co.uk
Thu Jun 9 15:43:24 EEST 2005


Andrey Panin wrote:
> 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.
> 
> 

Now here is a good case where I should RTFM :)

Regards
Andrew

-- 
Andrew Hutchings (A-Wing)
Linux Guru - Netserve Consultants Ltd. - http://www.domaincity.co.uk/
Admin - North Wales Linux User Group - http://www.nwlug.org.uk/
BOFH excuse 430: Mouse has out-of-cheese-error



More information about the dovecot mailing list