james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Perry (JIRA)" <server-...@james.apache.org>
Subject [jira] Commented: (JAMES-426) Make james use virtual user table domains for servernames
Date Fri, 03 Feb 2006 10:49:03 GMT
    [ http://issues.apache.org/jira/browse/JAMES-426?page=comments#action_12365064 ] 

Daniel Perry commented on JAMES-426:
------------------------------------

Whilst i think that this a great idea (not that i'm biased atall!), i dont think this code
provides the best solution.

The current code is totally locked into the virtual user table.  What i would like to see
is a way to specify classes (with configs) which provide the local servernames.  This way,
a class could be written to complement jdbcvirtualusertable, one for xmlvirtualusertable,
and another for relay-hosts(together with a matcher to send them straight to outgoing transport).
 I think this would provide a more flexible aproach, that would probably be of use in custom
setups, as well as a general virtual hosting server.

Daniel.

> Make james use virtual user table domains for servernames
> ---------------------------------------------------------
>
>          Key: JAMES-426
>          URL: http://issues.apache.org/jira/browse/JAMES-426
>      Project: James
>         Type: Improvement
>   Components: James Core
>  Environment: N/A
>     Reporter: Daniel Perry
>     Priority: Trivial
>  Attachments: patch.txt
>
> Attached is a patch that makes james use the virtualusertable database for identifying
local hosts.  It also allows for continued use of servernames block.  It is backwards compatible,
and unless an extra attribute is added in the configuration, it wont affect james's behaviour.
> It is configured by adding the domainTable attribute to the servernames element, eg:
> <servernames autodetect="true" autodetectIP="true" domainTable="db://maildb/VirtualUserTable">
> Please note that the patch i will attach against svn trunk, but has been copied over
directly from 2.2.0, and i havnt had a chance to check if it compiles or works with svn trunk.
> Daniel.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.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


Mime
View raw message