[Dovecot] Authentication with lower case username ONLY
Hi,
how do you guys force your users to authenticate with lower case letters ONLY? Or convert it? Is there a SASL Option to force that - or are you using scripts i.e. a bash script in combination with the command "tr" ... or a third solution I didn't think of yet?
I'm using Postfix / Dovecot combination. Postfix is told to use Dovecots SASL Service to authenticate it's users. For my outgoing eMails I already wrote a script with tr which forms upercase usernames to lowercase ones ... but it's not enough. SpamAssassin is still confused and writes uppercase letters in it's Database etc. ... So that's why I'm looking for a more universal solution.
P.S. I would basically prefer a convertation - but I would also be fine with a forced lower case auth system.
Thanks & Regards
check http://wiki2.dovecot.org/Variables -> Modifiers
You can apply a modifiers for each variable (e.g. %Us = POP3):
* %L - lowercase
* %U - uppercase
2010/9/15 Leander S. <info@netocean.de>:
Hi,
how do you guys force your users to authenticate with lower case letters ONLY? Or convert it? Is there a SASL Option to force that - or are you using scripts i.e. a bash script in combination with the command "tr" ... or a third solution I didn't think of yet?
I'm using Postfix / Dovecot combination. Postfix is told to use Dovecots SASL Service to authenticate it's users. For my outgoing eMails I already wrote a script with tr which forms upercase usernames to lowercase ones ... but it's not enough. SpamAssassin is still confused and writes uppercase letters in it's Database etc. ... So that's why I'm looking for a more universal solution.
P.S. I would basically prefer a convertation - but I would also be fine with a forced lower case auth system.
Thanks & Regards
On Wed, 15 Sep 2010 18:50:47 +0200 spamvoll@googlemail.com articulated:
2010/9/15 Leander S. <info@netocean.de>:
Hi,
how do you guys force your users to authenticate with lower case letters ONLY? Or convert it? Is there a SASL Option to force that - or are you using scripts i.e. a bash script in combination with the command "tr" ... or a third solution I didn't think of yet?
I'm using Postfix / Dovecot combination. Postfix is told to use Dovecots SASL Service to authenticate it's users. For my outgoing eMails I already wrote a script with tr which forms upercase usernames to lowercase ones ... but it's not enough. SpamAssassin is still confused and writes uppercase letters in it's Database etc. ... So that's why I'm looking for a more universal solution.
P.S. I would basically prefer a convertation - but I would also be fine with a forced lower case auth system.
check http://wiki2.dovecot.org/Variables -> Modifiers
You can apply a modifiers for each variable (e.g. %Us = POP3):
* %L - lowercase * %U - uppercase
Out of morbid curiosity, why do you feel the need to convert the user names to lower case?
-- Jerry ✌ Dovecot.user@seibercom.net
Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header.
Disbar, n.: As distinguished from some other bar.
On Sep 15, 2010, at 10:07 AM, Jerry wrote:
Out of morbid curiosity, why do you feel the need to convert the user names to lower case?
Because %L in a config file is better than a user on the phone?
If there are no upper-case letters in user names, there is no reason a login should fail because of an upper-case letter in a user name.
On Wed, 15 Sep 2010 10:19:10 -0700 Chris <cjl@viptalk.net> articulated:
On Sep 15, 2010, at 10:07 AM, Jerry wrote:
Out of morbid curiosity, why do you feel the need to convert the user names to lower case?
Because %L in a config file is better than a user on the phone?
If there are no upper-case letters in user names, there is no reason a login should fail because of an upper-case letter in a user name.
spamvoll@googlemail.com != cjl@viptalk.net
-- Jerry ✌ Dovecot.user@seibercom.net
Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header.
Rule of Creative Research: 1) Never draw what you can copy. 2) Never copy what you can trace. 3) Never trace what you can cut out and paste down.
Am 15.09.10 19:07, schrieb Jerry:
On Wed, 15 Sep 2010 18:50:47 +0200 spamvoll@googlemail.com articulated:
2010/9/15 Leander S.<info@netocean.de>:
Hi,
how do you guys force your users to authenticate with lower case letters ONLY? Or convert it? Is there a SASL Option to force that - or are you using scripts i.e. a bash script in combination with the command "tr" ... or a third solution I didn't think of yet?
I'm using Postfix / Dovecot combination. Postfix is told to use Dovecots SASL Service to authenticate it's users. For my outgoing eMails I already wrote a script with tr which forms upercase usernames to lowercase ones ... but it's not enough. SpamAssassin is still confused and writes uppercase letters in it's Database etc. ... So that's why I'm looking for a more universal solution.
P.S. I would basically prefer a convertation - but I would also be fine with a forced lower case auth system. check http://wiki2.dovecot.org/Variables -> Modifiers
You can apply a modifiers for each variable (e.g. %Us = POP3):
* %L - lowercase * %U - uppercase
^^ Thanks. That's what I have already: "username_format: %Lu" But I didn't know about Service restriction. Is it possible to give only several users POP and the others IMAP access without a second instance?
Out of morbid curiosity, why do you feel the need to convert the user names to lower case?
Well the reason is quite easy to describe: I have SpamAssassin running which is connected to a SQL Backend. So now how should I make sure user_prefs match if people can set up user_prefs as their Username offers combinations of switching between upper and lower case. In the end it means having a horrible mess in the Database PLUS having an unsatisfied customer cause he complains about his rules only working sporadically ...
But I figured so far - since I have that %Lu option included already, that I have to optimize my SpamAssassin therefore ... cause for "awl" it seems to pick out the Data from the Mail itself instead of getting it hand over in lower case from Dovecot/Postfix ...
On Wed, 2010-09-15 at 19:23 +0200, Leander S. wrote:
Is it possible to give only several users POP and the others IMAP access without a second instance?
participants (5)
-
Chris
-
Jerry
-
Leander S.
-
spamvoll@googlemail.com
-
Timo Sirainen