uppercase usernames

Julien Coloos julien.coloos at mines-douai.org
Mon Mar 11 08:19:50 EDT 2013


Hi,

Is your system RedHat/CentOS/Fedora ?
I think their version (since 2.3.x) have a patch that "normalize" 
(lowercase + strip leading and trailing whitespaces) authentication ids. 
>From what I could see it appears it was added as a configuration option, 
but the code is not complete and so the default value (enabled) applies.


Le 11/03/2013 08:49, Joerg Maier a écrit :
> Hi Dan,
>
> Thanks for you suggestion!
>
> Unfortunately, testing the solution i have in mind, i renamed and
> finally deleted my one CamelCase testaccount. And now, when I try to
> create a mailbox with CamelCase with cyradm, the default acls are set to
> a user with lowercase username, and I am not able to set additional acls
> to a user with CamelCase with sam.
>
> I suppose that "username_tolower: 0" just does not does what I thiought
> it did in the source installation.
>
> The solution I want to use for my users now is:
> - renaming user to lowercase in userdatabase
> - renamin cyrus account with cyradm rename to lowercase
> - creating a virtual forward rule, so postfix delivers the mail sent to
> CamelCase address -> camelcase (and keep lmtp_downcase_rcpt: 0 and
> username_tolower: 0 until last CamelCase adress is converted.
>
> Thanks, Joerg
>
>
> On 2013-03-11 0:29, Dan White wrote:
>> On 03/10/13 23:28 +0100, Joerg Maier joerg.maier wrote:
>>> Hi List,
>>>
>>> I am using cyrus since ~8 years for a mailserver with ~200
>>> mailaccounts.
>>>
>>> After transferring a mailserver from cyrus 2.2 to 2.4, I have an
>>> issue
>>> with usernames containing uppercase letters. Up to now, i did tread
>>> the
>>> part before the @ as case sensitive, and i allowed users to create
>>> mailboxes like TestCApital.....
>>>
>>> I have set:
>>> lmtp_downcase_rcpt: 0
>>> username_tolower: 0
>>>
>>> When I try:
>>> testsaslauthd -u TestCApital.<domain> -p <password>
>>> I get
>>> 0: OK "Success."
>>>
>>> But when I try to logon via imap, i see in the logs:
>>> ... saslauthd[24118]: do_auth         : auth failure:
>>> [user=testcapital.<domain>] [service=imap] [realm=] [mech=pam]
>>> [reason=PAM auth error]
>>>
>>> What is the best solution to work around this?
>> Do you get the same result with imtest?
> ----
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
> To Unsubscribe:
> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus



More information about the Info-cyrus mailing list