[Dovecot] strip realms and force lowercasing of usernames?

Jeff Graves jeff at image-src.com
Tue Jun 14 21:49:12 EEST 2005


I have patched the test70 release to force the lowercase username after
input. Rather than using my patch, I'd like to use the existing dovecot
functionality. Has anyone used these modifiers in production systems? Any
problems with them?

Jeff Graves, MCSA
Customer Support Engineer
Image Source, Inc.
10 Mill Street
Bellingham, MA 02019

508.966.5200 - Phone
508.966.5170 - Fax
jeff at image-src.com - Email
www.image-src.com

-----Original Message-----
From: dovecot-bounces at dovecot.org [mailto:dovecot-bounces at dovecot.org] On
Behalf Of Andrey Panin
Sent: Thursday, June 09, 2005 8:31 AM
To: Andrew Hutchings
Cc: Dan Hollis; dovecot at dovecot.org
Subject: Re: [Dovecot] strip realms and force lowercasing of usernames?


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




More information about the dovecot mailing list