We definitely want to do Virtual Domains:
http://jira.jboss.com/jira/browse/JBMAIL-40
What you have specified has merit and in concept is largely how would invisage it working (Andy speak up I am talking nonsense). However we would probably use MBeans to perform the configuration. The Realm (or DomainGroup or whatever you would like to call the logical aggregation of domains) would reference configured instances of the appropriate User Repository and Mailbox Manager. This would allow reuse instances across different realms.
Rather than have the concept of a Realm Manager we would probably use a MailListener Chain ("RoutingChain" perhaps) would would have references to all of the Realms and associated delivery queues (either one listener per domain or a single listener that references all of the domains). The SMTP protocol would the push the mail to the RoutingChain which deliver it to the approriate local domain(s) and/or pass it to the remote delivery queue. Protocols like POP would probably be bound to a single Realm and lookup the associated User Repository and Mailbox Manager.
Interestingly enough probabaly 85% of the code to make this happen are already there. Its mostly a case sorting out configuration.
Mike.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3886482#3886482
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3886482
|