[ 
https://issues.apache.org/jira/browse/JAMES-1035?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12898622#action_12898622
 ] 

Eric Charles commented on JAMES-1035:
-------------------------------------

There are 2 ways to create usernames depending on the value of 
<enableVirtualHosting/> in James.xml
1.- false: a String (without @). In this case, the associated email will be the 
username + the default domain defined in James.xml
2.- true: the option 1.- or a email address.

Mapping is always from a mail address (n...@domain.tld) to a username (so : 
mail -> username).

For XMLVirtualUserTable, mappings are defined in virtualusertable-store.xml and 
are statically read at startup (so you need to restart).
For JDBCVirtualUserTable, mappings can be created via management console and 
are taken into account without the need to restart.

In both cases, the mail of the mapping ("mail -> username) can be a mail of a 
domain listed as a james local domain, or any other external domain.

For multidomain support, the classical path is:
- create the list of local domains
- create the username such as "u...@domain.tld".

After, create your mappings : addmapping any_email_address username

With this change, we don't support anymore something like "the list of domains 
is generated from a list of existing mappings" (I guess this is what was done 
with the previous impl).
But with that, I think there was a mix of 2 things : the domains list, and the 
mapping list.

For the record, the forward and alias stuff are no more supported.

If still ok to everyone to remove the "implements DomainList", the possible 
configs will be documented on James 3.0 web site.


> XML/JDBCVirtualUserTable should not implement DomainList
> --------------------------------------------------------
>
>                 Key: JAMES-1035
>                 URL: https://issues.apache.org/jira/browse/JAMES-1035
>             Project: JAMES Server
>          Issue Type: Bug
>          Components: James Core
>    Affects Versions: Trunk
>            Reporter: Eric Charles
>            Assignee: Eric Charles
>             Fix For: 3.0-M1
>
>
> VirtualUserTable (AbstractVirtualUserTable and its implementations) 
> implements DomainList but should not be related to the domain management.
> We should remove "implements DomainList" and its implementation methods.
> We should also remove the mentions in spring-beans.xml as possible 
> "domainlist" bean. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to