----- Original Message -----
From: "Michael Wyraz" <[EMAIL PROTECTED]>
> On Tue, 23 Jan 2001 12:02:43 -0500, Serge Knystautas wrote:
> maybe there should be a possibility to make both. aliases and long names.
if you have (like we do)
> some hundred domains, it's almost impossible to mak an alias for each user
:-/
Sorry, I meant aliases for the domain names. So microsoft.com is aliased to
..ms and apache.org is aliased to .apache. Then [EMAIL PROTECTED] becomes
mile.ms (etc..).
The delimiter character seems to be something we have to resolve. I think a
single dot would work (that's what we use), but it's harder to prevent
username collisions then.
> i thougth the whole day about that problem. my conclusion is, that we
don't need to make a
> user rep. for each domain if the domain could be part of the username.
more for that written below...
Sounds good, although I think it would be nice if we could.
> here my thougths for that (and some questions for implementing):
>
> 1. UsersRepository
> a username consists of "[EMAIL PROTECTED]". there are special VHost User
> Repositories (how can be set which UserRepository classes are known by
> james? i found no config option for that?). or the existing UserRep's are
changed
> (can UserRepositories, Mailets and Matchers access the configuration?).
> I Think it's better to modify the existing for file rep. and make a new
for database rep.
> This change includes:
> * a new Configuration Parameter "EnableVirtualHosting"
> * a parameter for specifying valid seperator chars/strings between the
username and the host part
> * the new ep. implements a new column containing the domain part of the
username.
> *if virtual hosting is enabled the method "public boolean test(String
name, Object attributes)" of the UsersRepository
> matches all variants of username+valid seperator+host
I don't think you want to change UsersRepository... you just want to change
the way the local account(s) user repository works. What about the idea of
a "roll-up" repository... a user repository that wraps multiple other user
repositories? I'm just making this up as I go.
> 2. MailServer.getUserInbox
> should now return for user "[EMAIL PROTECTED]" (if EnableVirtualHosting is
true):
> [path to inbox]/domain.com/user/ (i think you know what i mean ;-)
If you map names from any domain to a unique username (so that the telnet
app doesn't do anything special), then you don't have to do anything special
here.
> 3. Mather: UserIs
> if EnableVirtualHosting is true it should have the same behavior as
ReceipientIs.
> Alternatively one who uses Virtual Hosting has to use Reciepient is
instead of UserIs.
I don't think you want to change how things work based on such a meta
setting. I think if you as an admistrator want RecipientIs, you should use
RecipientIs. If you want UserIs, you should use UserIs. The
RecipientIsLocal matcher might need to change a bit though.
> but there's another thing that would be usefull in this case:
> Domains (aka ServerNames) are currently configured in the xml config.
> for virtual domains it would be much better if there were a (maybe
aditional) DomainsRepository
> which could be implemented with town. So there's no need to restart for
adding a domain and it's users.
I'm not sure exactly how this would work. Could you explain some more?
Serge Knystautas
Loki Technologies
http://www.lokitech.com/
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives: <http://www.mail-archive.com/james%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]