Simeon,

My personal view is that virtual hosting needs a complete design review from
top to bottom.  I would not undertake that at this time.

When we do undertake it, I have questions about how best to deal with it.
For example, the approach that you and Zsombor Gegesy took was substantial
recoding of James to support fully-qualified mailbox (FQMB) identification.
That appears to be all that is provided by the code changes, and the basic
change is support for:

  - store mail keyed by FQMB
  - retrieve mail by FQMB

It does not provide anything more than FQMB support, e.g., catch-all
matching or other types of behavior found in sendmail's virtual user table
scheme.

For the next release, I'd want to start with the data model.  I think that
there are a number of things that could be integrated coherently.

        --- Noel

-----Original Message-----
From: Simeon Kirov [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 9:18
To: [EMAIL PROTECTED]
Subject: Extending basic James services (Virtual Hosting)


Hi all,

I know it's bad teasing you at release time, but could you consider this:

I developed some extension to James 2.1a1, which allows virtual hosting.
I decided to extend some of the basic James service classes like
org.apache.james.James, org.apache.james.pop3server.POP3ServerHandler,
org.apache.james.remotemanager.RemoteManagerHandler etc.

MY MAIN POINT is, that in order to make this I should redeclare almost all
private members of the respective classes as protected. Could you consider
in your future releases making those members protected by default? This will
make James extendable not only by mailets...

If you're interested in the exact implementation, look at the attached zip
file. It contains sources and modified configuration files.

Supported virtual hosts are defined in separate
<virtualHosts>...</virtualHosts> section in config.xml. Every virtual host
uses a separate Users and Inbox repository. Virtual POP3 boxes are accessed
through fully qualified user's e-mail address, i.e. [EMAIL PROTECTED]

RemoteManager is modified also to support this kind of virtual hosting, by
adding 3 new commands:

listhost, selecthost and activehost.

Fill free to use it, if you find it useful.

Simeon


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to