You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Phanidhar (Created) (JIRA)" <se...@james.apache.org> on 2012/02/03 19:43:54 UTC

[jira] [Created] (JAMES-1369) domains names in James 3 Beta 3 are case sensitive. Used the matcher RecipientToLowerCase and it only converts the local part (user name) to lower case.

domains names in James 3 Beta 3 are case sensitive. Used the matcher RecipientToLowerCase and it only converts the local part (user name) to lower case. 
---------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: JAMES-1369
                 URL: https://issues.apache.org/jira/browse/JAMES-1369
             Project: JAMES Server
          Issue Type: Improvement
          Components: Matchers/Mailets (bundled)
    Affects Versions: 3.0-beta3
         Environment: Linux
            Reporter: Phanidhar




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] [Assigned] (JAMES-1369) domains names in James 3 Beta 3 are case sensitive. Used the matcher RecipientToLowerCase and it only converts the local part (user name) to lower case.

Posted by "Eric Charles (Assigned) (JIRA)" <se...@james.apache.org>.
     [ https://issues.apache.org/jira/browse/JAMES-1369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Charles reassigned JAMES-1369:
-----------------------------------

    Assignee: Eric Charles
    
> domains names in James 3 Beta 3 are case sensitive. Used the matcher RecipientToLowerCase and it only converts the local part (user name) to lower case. 
> ---------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JAMES-1369
>                 URL: https://issues.apache.org/jira/browse/JAMES-1369
>             Project: JAMES Server
>          Issue Type: Improvement
>          Components: Matchers/Mailets (bundled)
>    Affects Versions: 3.0-beta3
>         Environment: Linux
>            Reporter: Phanidhar
>            Assignee: Eric Charles
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] [Commented] (JAMES-1369) domains names in James 3 Beta 3 are case sensitive. Used the matcher RecipientToLowerCase and it only converts the local part (user name) to lower case.

Posted by "Phanidhar (Commented) (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/JAMES-1369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13200175#comment-13200175 ] 

Phanidhar commented on JAMES-1369:
----------------------------------

Domains are stored in Derby using JPA store. 

User Names with JPA also had the same issue. When the configuration was changed to use file store with configuration to ignore case set to false user names are case insensitive. Following is the configuration. 

<usersrepository name="LocalUsers" class="org.apache.james.user.jdbc.JamesUsersJdbcRepository" destinationURL="db://maildb/users">
  <sqlFile>file://conf/sqlResources.xml</sqlFile>
  <ignoreCase>true</ignoreCase>
  <enableAliases>true</enableAliases>
  <enableForwarding>true</enableForwarding>
  <enableVirtualHosting>true</enableVirtualHosting>     
</usersrepository>


                
> domains names in James 3 Beta 3 are case sensitive. Used the matcher RecipientToLowerCase and it only converts the local part (user name) to lower case. 
> ---------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JAMES-1369
>                 URL: https://issues.apache.org/jira/browse/JAMES-1369
>             Project: JAMES Server
>          Issue Type: Improvement
>          Components: Matchers/Mailets (bundled)
>    Affects Versions: 3.0-beta3
>         Environment: Linux
>            Reporter: Phanidhar
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] [Commented] (JAMES-1369) domains names in James 3 Beta 3 are case sensitive. Used the matcher RecipientToLowerCase and it only converts the local part (user name) to lower case.

Posted by "Eric Charles (Commented) (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/JAMES-1369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13201232#comment-13201232 ] 

Eric Charles commented on JAMES-1369:
-------------------------------------

Hi,

I have committed a first patch to disallow the creation of 2 domains with different cases.
http://svn.apache.org/viewvc?rev=1240986&view=rev
That's only the first part of the solution.

We now have to do some more work on the user and delivery side.
For the user part, I plan to do it such as for the domains : disallow User@domain.tls if use@domain.tld is already present.
For the delivery part, we could do this in the localdeliverymailet, but I think the right place is the mailbox subproject.

With this, we take as assumption that User@Domain.TLD is the same as user@domain.tld, so that User@Domain.TLD can not be created.
I didn't check the RFC if this true... Any thought ?

Btw, JDBC storage is deprecated in favor of JPA.

                
> domains names in James 3 Beta 3 are case sensitive. Used the matcher RecipientToLowerCase and it only converts the local part (user name) to lower case. 
> ---------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JAMES-1369
>                 URL: https://issues.apache.org/jira/browse/JAMES-1369
>             Project: JAMES Server
>          Issue Type: Improvement
>          Components: Matchers/Mailets (bundled)
>    Affects Versions: 3.0-beta3
>         Environment: Linux
>            Reporter: Phanidhar
>            Assignee: Eric Charles
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] [Commented] (JAMES-1369) domains names in James 3 Beta 3 are case sensitive. Used the matcher RecipientToLowerCase and it only converts the local part (user name) to lower case.

Posted by "Eric Charles (Commented) (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/JAMES-1369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13207623#comment-13207623 ] 

Eric Charles commented on JAMES-1369:
-------------------------------------

Hi Phanidhar,
The release process will start this week, but we need to release imap and mailbox before, so all this may take a bit of time (2 weeks?).
Thx,
Eric

                
> domains names in James 3 Beta 3 are case sensitive. Used the matcher RecipientToLowerCase and it only converts the local part (user name) to lower case. 
> ---------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JAMES-1369
>                 URL: https://issues.apache.org/jira/browse/JAMES-1369
>             Project: JAMES Server
>          Issue Type: Improvement
>          Components: Matchers/Mailets (bundled)
>    Affects Versions: 3.0-beta3
>         Environment: Linux
>            Reporter: Phanidhar
>            Assignee: Eric Charles
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] [Commented] (JAMES-1369) domains names in James 3 Beta 3 are case sensitive. Used the matcher RecipientToLowerCase and it only converts the local part (user name) to lower case.

Posted by "Stefano Bagnara (Commented) (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/JAMES-1369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13201242#comment-13201242 ] 

Stefano Bagnara commented on JAMES-1369:
----------------------------------------

The spec is:
domain names are case insensitive, so either we always "lowercase" them or we compare using a case insensitive algorithm.
the userpart instead *can be* case sensitive. So case must always be preserved by MUA/MDA/MSA.

That said allowing case sensitive local parts is a source of chaos (would you imagine what would happen if Eric@yourdomain, eric@yourdomain, ERIC@yourdomain were 3 different users? this is expected to work for RFC but this won't work for humans), so the best thing is to default to case insensitive behaviour also for local parts and supports case sensitivity only with a custom configuration (or don't support it at all).

E.g: gmail convert local parts to lowercase and remove "." from it and it does this replace both during receiving and during authentication. So "Some.Thing@gmail.com" is equal to "something@gmail.com". Most servers simply to the lowercase conversion.
                
> domains names in James 3 Beta 3 are case sensitive. Used the matcher RecipientToLowerCase and it only converts the local part (user name) to lower case. 
> ---------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JAMES-1369
>                 URL: https://issues.apache.org/jira/browse/JAMES-1369
>             Project: JAMES Server
>          Issue Type: Improvement
>          Components: Matchers/Mailets (bundled)
>    Affects Versions: 3.0-beta3
>         Environment: Linux
>            Reporter: Phanidhar
>            Assignee: Eric Charles
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] [Commented] (JAMES-1369) domains names in James 3 Beta 3 are case sensitive. Used the matcher RecipientToLowerCase and it only converts the local part (user name) to lower case.

Posted by "Eric Charles (Commented) (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/JAMES-1369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13202436#comment-13202436 ] 

Eric Charles commented on JAMES-1369:
-------------------------------------

See [1] for the changes needed to support a case insensitive definition and delivery of the mails.
Tested with trunk. Thx, Eric
[1] https://issues.apache.org/jira/browse/JAMES-1369?page=com.atlassian.jira.plugin.ext.subversion:subversion-commits-tabpanel#issue-tabs
                
> domains names in James 3 Beta 3 are case sensitive. Used the matcher RecipientToLowerCase and it only converts the local part (user name) to lower case. 
> ---------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JAMES-1369
>                 URL: https://issues.apache.org/jira/browse/JAMES-1369
>             Project: JAMES Server
>          Issue Type: Improvement
>          Components: Matchers/Mailets (bundled)
>    Affects Versions: 3.0-beta3
>         Environment: Linux
>            Reporter: Phanidhar
>            Assignee: Eric Charles
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] [Commented] (JAMES-1369) domains names in James 3 Beta 3 are case sensitive. Used the matcher RecipientToLowerCase and it only converts the local part (user name) to lower case.

Posted by "Eric Charles (Commented) (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/JAMES-1369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13201243#comment-13201243 ] 

Eric Charles commented on JAMES-1369:
-------------------------------------

Hi Stefano. Thx for the explanation :) I will thus go for:
- domain (as done in my last commit) : check if the given domain.toLowercase is present. If yes, throw exception, otherwise insert givenDomain.toLowercase
- user : same as for domain
- delivery: when receiving a mail, the mailbox store will lowerCase all given user and domain information (so any mailet, the sieve, or upcoming ToFolder benefits from this).

                
> domains names in James 3 Beta 3 are case sensitive. Used the matcher RecipientToLowerCase and it only converts the local part (user name) to lower case. 
> ---------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JAMES-1369
>                 URL: https://issues.apache.org/jira/browse/JAMES-1369
>             Project: JAMES Server
>          Issue Type: Improvement
>          Components: Matchers/Mailets (bundled)
>    Affects Versions: 3.0-beta3
>         Environment: Linux
>            Reporter: Phanidhar
>            Assignee: Eric Charles
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] [Commented] (JAMES-1369) domains names in James 3 Beta 3 are case sensitive. Used the matcher RecipientToLowerCase and it only converts the local part (user name) to lower case.

Posted by "Phanidhar (Commented) (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/JAMES-1369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13207240#comment-13207240 ] 

Phanidhar commented on JAMES-1369:
----------------------------------

Thanks Eric. When can we expect to Beta 4 release. Just curios. We are interested in some of the new features in this release. 
                
> domains names in James 3 Beta 3 are case sensitive. Used the matcher RecipientToLowerCase and it only converts the local part (user name) to lower case. 
> ---------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JAMES-1369
>                 URL: https://issues.apache.org/jira/browse/JAMES-1369
>             Project: JAMES Server
>          Issue Type: Improvement
>          Components: Matchers/Mailets (bundled)
>    Affects Versions: 3.0-beta3
>         Environment: Linux
>            Reporter: Phanidhar
>            Assignee: Eric Charles
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org