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@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@donpac.ru | PGP key: wwwkeys.pgp.net