It was due to a bug in the AbstractUsersRepository:

The configure() method was reading a property called usernames instead of ignoreCase.



--------------------------------------------------
From: "冉兵" <[email protected]>
Sent: Tuesday, August 03, 2010 4:06 PM
To: "James Users List" <[email protected]>
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" <[email protected]>
Sent: Tuesday, August 03, 2010 3:59 PM
To: "James Users List" <[email protected]>
Subject: Re: Fw: local user name case sensitivity

Search for ignoreCase in the config.xml.

Bye,
Norman


2010/8/3 冉兵 <[email protected]>:
I'm running a version about one year old from the 3.0 trunk.

Thanks Norman.



--------------------------------------------------
From: "Norman Maurer" <[email protected]>
Sent: Tuesday, August 03, 2010 3:21 PM
To: "James Users List" <[email protected]>
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 冉兵 <[email protected]>:

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: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to