You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by 冉兵 <bi...@hotmail.com> on 2010/08/03 09:17:43 UTC
Fw: local user name case sensitivity
Hi,
I'm running James with Postgres as the users repository. I have just noticed that my server is case sensitive when it determines if a local user is indeed contained in the local users repository.
e.g.,
messages to andy @ localhost works while messages to Andy are thrown to address-error folder.
Is this the expected behavior? What can I do to make the server case insensitive?
Thanks
Bing
Re: Fw: local user name case sensitivity
Posted by Norman Maurer <no...@apache.org>.
ah right.. that was fixed in trunk already..
Bye,
Norman
2010/8/3 冉兵 <bi...@hotmail.com>:
> It was due to a bug in the AbstractUsersRepository:
>
> The configure() method was reading a property called usernames instead of
> ignoreCase.
>
>
>
> --------------------------------------------------
> From: "冉兵" <bi...@hotmail.com>
> Sent: Tuesday, August 03, 2010 4:06 PM
> To: "James Users List" <se...@james.apache.org>
> Subject: Re: Fw: local user name case sensitivity
>
>> This is what I'm using
>>
>> <repository name="LocalUsers"
>> class="org.apache.james.userrepository.JamesUsersJdbcRepository"
>> destinationURL="db://maildb/users">
>> <sqlFile>classpath:sqlResources.xml</sqlFile>
>> <!-- Set whether user names are case sensitive or case insensitive
>> -->
>> <ignoreCase>true</ignoreCase>
>> <!-- Set whether to enable local aliases -->
>> <enableAliases>true</enableAliases>
>> <!-- Set whether to enable forwarding -->
>> <enableForwarding>true</enableForwarding>
>> </repository>
>>
>> The ignoreCase is already true. Shall I switch it to false?
>>
>>
>>
>> --------------------------------------------------
>> From: "Norman Maurer" <no...@apache.org>
>> Sent: Tuesday, August 03, 2010 3:59 PM
>> To: "James Users List" <se...@james.apache.org>
>> Subject: Re: Fw: local user name case sensitivity
>>
>>> Search for ignoreCase in the config.xml.
>>>
>>> Bye,
>>> Norman
>>>
>>>
>>> 2010/8/3 冉兵 <bi...@hotmail.com>:
>>>>
>>>> I'm running a version about one year old from the 3.0 trunk.
>>>>
>>>> Thanks Norman.
>>>>
>>>>
>>>>
>>>> --------------------------------------------------
>>>> From: "Norman Maurer" <no...@apache.org>
>>>> Sent: Tuesday, August 03, 2010 3:21 PM
>>>> To: "James Users List" <se...@james.apache.org>
>>>> Subject: Re: Fw: local user name case sensitivity
>>>>
>>>>> Yes its expected.. What version of james you use (so I can tell you
>>>>> where you have to change the config)
>>>>>
>>>>> Bye,
>>>>> Norman
>>>>>
>>>>>
>>>>> 2010/8/3 冉兵 <bi...@hotmail.com>:
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I'm running James with Postgres as the users repository. I have just
>>>>>> noticed that my server is case sensitive when it determines if a local
>>>>>> user
>>>>>> is indeed contained in the local users repository.
>>>>>>
>>>>>> e.g.,
>>>>>>
>>>>>> messages to andy @ localhost works while messages to Andy are thrown
>>>>>> to
>>>>>> address-error folder.
>>>>>>
>>>>>> Is this the expected behavior? What can I do to make the server case
>>>>>> insensitive?
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> Bing
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: Fw: local user name case sensitivity
Posted by 冉兵 <bi...@hotmail.com>.
It was due to a bug in the AbstractUsersRepository:
The configure() method was reading a property called usernames instead of
ignoreCase.
--------------------------------------------------
From: "冉兵" <bi...@hotmail.com>
Sent: Tuesday, August 03, 2010 4:06 PM
To: "James Users List" <se...@james.apache.org>
Subject: Re: Fw: local user name case sensitivity
> This is what I'm using
>
> <repository name="LocalUsers"
> class="org.apache.james.userrepository.JamesUsersJdbcRepository"
> destinationURL="db://maildb/users">
> <sqlFile>classpath:sqlResources.xml</sqlFile>
> <!-- Set whether user names are case sensitive or case
> insensitive -->
> <ignoreCase>true</ignoreCase>
> <!-- Set whether to enable local aliases -->
> <enableAliases>true</enableAliases>
> <!-- Set whether to enable forwarding -->
> <enableForwarding>true</enableForwarding>
> </repository>
>
> The ignoreCase is already true. Shall I switch it to false?
>
>
>
> --------------------------------------------------
> From: "Norman Maurer" <no...@apache.org>
> Sent: Tuesday, August 03, 2010 3:59 PM
> To: "James Users List" <se...@james.apache.org>
> Subject: Re: Fw: local user name case sensitivity
>
>> Search for ignoreCase in the config.xml.
>>
>> Bye,
>> Norman
>>
>>
>> 2010/8/3 冉兵 <bi...@hotmail.com>:
>>> I'm running a version about one year old from the 3.0 trunk.
>>>
>>> Thanks Norman.
>>>
>>>
>>>
>>> --------------------------------------------------
>>> From: "Norman Maurer" <no...@apache.org>
>>> Sent: Tuesday, August 03, 2010 3:21 PM
>>> To: "James Users List" <se...@james.apache.org>
>>> Subject: Re: Fw: local user name case sensitivity
>>>
>>>> Yes its expected.. What version of james you use (so I can tell you
>>>> where you have to change the config)
>>>>
>>>> Bye,
>>>> Norman
>>>>
>>>>
>>>> 2010/8/3 冉兵 <bi...@hotmail.com>:
>>>>>
>>>>> Hi,
>>>>>
>>>>> I'm running James with Postgres as the users repository. I have just
>>>>> noticed that my server is case sensitive when it determines if a local
>>>>> user
>>>>> is indeed contained in the local users repository.
>>>>>
>>>>> e.g.,
>>>>>
>>>>> messages to andy @ localhost works while messages to Andy are thrown
>>>>> to
>>>>> address-error folder.
>>>>>
>>>>> Is this the expected behavior? What can I do to make the server case
>>>>> insensitive?
>>>>>
>>>>> Thanks
>>>>>
>>>>> Bing
>>>>>
>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: Fw: local user name case sensitivity
Posted by 冉兵 <bi...@hotmail.com>.
This is what I'm using
<repository name="LocalUsers"
class="org.apache.james.userrepository.JamesUsersJdbcRepository"
destinationURL="db://maildb/users">
<sqlFile>classpath:sqlResources.xml</sqlFile>
<!-- Set whether user names are case sensitive or case
insensitive -->
<ignoreCase>true</ignoreCase>
<!-- Set whether to enable local aliases -->
<enableAliases>true</enableAliases>
<!-- Set whether to enable forwarding -->
<enableForwarding>true</enableForwarding>
</repository>
The ignoreCase is already true. Shall I switch it to false?
--------------------------------------------------
From: "Norman Maurer" <no...@apache.org>
Sent: Tuesday, August 03, 2010 3:59 PM
To: "James Users List" <se...@james.apache.org>
Subject: Re: Fw: local user name case sensitivity
> Search for ignoreCase in the config.xml.
>
> Bye,
> Norman
>
>
> 2010/8/3 冉兵 <bi...@hotmail.com>:
>> I'm running a version about one year old from the 3.0 trunk.
>>
>> Thanks Norman.
>>
>>
>>
>> --------------------------------------------------
>> From: "Norman Maurer" <no...@apache.org>
>> Sent: Tuesday, August 03, 2010 3:21 PM
>> To: "James Users List" <se...@james.apache.org>
>> Subject: Re: Fw: local user name case sensitivity
>>
>>> Yes its expected.. What version of james you use (so I can tell you
>>> where you have to change the config)
>>>
>>> Bye,
>>> Norman
>>>
>>>
>>> 2010/8/3 冉兵 <bi...@hotmail.com>:
>>>>
>>>> Hi,
>>>>
>>>> I'm running James with Postgres as the users repository. I have just
>>>> noticed that my server is case sensitive when it determines if a local
>>>> user
>>>> is indeed contained in the local users repository.
>>>>
>>>> e.g.,
>>>>
>>>> messages to andy @ localhost works while messages to Andy are thrown to
>>>> address-error folder.
>>>>
>>>> Is this the expected behavior? What can I do to make the server case
>>>> insensitive?
>>>>
>>>> Thanks
>>>>
>>>> Bing
>>>>
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: Fw: local user name case sensitivity
Posted by Norman Maurer <no...@apache.org>.
Search for ignoreCase in the config.xml.
Bye,
Norman
2010/8/3 冉兵 <bi...@hotmail.com>:
> I'm running a version about one year old from the 3.0 trunk.
>
> Thanks Norman.
>
>
>
> --------------------------------------------------
> From: "Norman Maurer" <no...@apache.org>
> Sent: Tuesday, August 03, 2010 3:21 PM
> To: "James Users List" <se...@james.apache.org>
> Subject: Re: Fw: local user name case sensitivity
>
>> Yes its expected.. What version of james you use (so I can tell you
>> where you have to change the config)
>>
>> Bye,
>> Norman
>>
>>
>> 2010/8/3 冉兵 <bi...@hotmail.com>:
>>>
>>> Hi,
>>>
>>> I'm running James with Postgres as the users repository. I have just
>>> noticed that my server is case sensitive when it determines if a local user
>>> is indeed contained in the local users repository.
>>>
>>> e.g.,
>>>
>>> messages to andy @ localhost works while messages to Andy are thrown to
>>> address-error folder.
>>>
>>> Is this the expected behavior? What can I do to make the server case
>>> insensitive?
>>>
>>> Thanks
>>>
>>> Bing
>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: Fw: local user name case sensitivity
Posted by 冉兵 <bi...@hotmail.com>.
I'm running a version about one year old from the 3.0 trunk.
Thanks Norman.
--------------------------------------------------
From: "Norman Maurer" <no...@apache.org>
Sent: Tuesday, August 03, 2010 3:21 PM
To: "James Users List" <se...@james.apache.org>
Subject: Re: Fw: local user name case sensitivity
> Yes its expected.. What version of james you use (so I can tell you
> where you have to change the config)
>
> Bye,
> Norman
>
>
> 2010/8/3 冉兵 <bi...@hotmail.com>:
>>
>> Hi,
>>
>> I'm running James with Postgres as the users repository. I have just
>> noticed that my server is case sensitive when it determines if a local
>> user is indeed contained in the local users repository.
>>
>> e.g.,
>>
>> messages to andy @ localhost works while messages to Andy are thrown to
>> address-error folder.
>>
>> Is this the expected behavior? What can I do to make the server case
>> insensitive?
>>
>> Thanks
>>
>> Bing
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: Fw: local user name case sensitivity
Posted by Norman Maurer <no...@apache.org>.
Yes its expected.. What version of james you use (so I can tell you
where you have to change the config)
Bye,
Norman
2010/8/3 冉兵 <bi...@hotmail.com>:
>
> Hi,
>
> I'm running James with Postgres as the users repository. I have just noticed that my server is case sensitive when it determines if a local user is indeed contained in the local users repository.
>
> e.g.,
>
> messages to andy @ localhost works while messages to Andy are thrown to address-error folder.
>
> Is this the expected behavior? What can I do to make the server case insensitive?
>
> Thanks
>
> Bing
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org