On Wed, 19 Sep 2001, Serge Knystautas wrote:
> Delivery isn't an issue. Retrieval can't resolve the domain name, so once
> we resolve how we address that, we can setup this or whatever aliasing
> approach we want (since delivery provides much more information, i.e., the
> full email address as opposed to just the username).
Once I was a client of an ISP that provided POP accounts. They definitely
used an email server that supported virtual addresses; qmail, if I
remember correctly. Retrieving my mailbox, I used my email address,
instead of just my username; ie: "[EMAIL PROTECTED]".
I think if James POP server supports "<username>@<mydomain>" as usernames,
then supporting virtual domain would be possible. In the users repository
(the db one), there would be no problem. You can put anything in the
Users.username field. So clients retrieving messages would be quite
possible (ie: I haven't tested it).
The question is, could a user who retrieves the messages using, say,
[EMAIL PROTECTED] get the right mailbox in the mail repository? All
I know is that if you define db://Message/inbox as the inbox URL, then the
messages would be put in the mail repository with "usernameinbox/" as the
repository name in the database. It would be nice, if we could have
"[EMAIL PROTECTED]/" as the repository name, but I don't think
that's the case. James SMTP server would strip off the domain names before
storing the messages in the mail repository (if you use the LocalDelivery
mailet).
To have virtual domain support in James I think it can be done by storing
the arriving messages directly in the repository, using HostIs matcher and
ToRepository mailet in the transport processor; eg:
<mailet match="HostIs=somedomain.com" class="ToRepository">
<repositoryPath>db://Message/somedomain.cominbox</repositoryPath>
<passThrough>false</passThrough>
</mailet>
The next problem would be to make James serves more than one domain. I
think all you need is a DNS server that defines all the zones which
James is supposed to be serving, with each zone has an MX record that
points back to the machine where James is running.
Just some thoughts.
May this be working,
Oki
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]