Re: Virtual domains.

From: Devdas Bhagat (no email)
Date: Thu Jul 19 2001 - 09:47:35 EDT


On Thu, 19 Jul 2001, Kevin J. Menard, Jr. spewed into the ether:
<snip>
> Pretty cool. I presume you're building this on top of the HIERSEP codebase
> so that and have different prefixes?
Not yet.

> DB> However, at many places, the "user." string is hardcoded. Can someone
> DB> please tell me in which files a change *must* be made for this to work?
> DB> (Minimally pop and imap).
> DB> What I'm trying to say is: I have a split function ready, now where do
> DB> I put it for it to be available to everyone?
> DB> Can we move *all* header files to an include directory, please?
>
> I don't know what you have in mind, but probably the easiest thing to do,
> that I can think of, is to replace the "user" part with a string, which is
> configurable via imapd.conf, with the default value being user. I don't
No, what I am doing is
#define MAILBOX_TOP user
char *domain=MAILBOX_TOP
char *domainname=NULL;
split(&username,&domainname)
domain = domainname

So if the user logs in without the domain, I get domain = user, else I
get that domain.

> quite know how the HIERSEP code works though, and i wonder if a uid
> of would get translated to domain.com^user rather
> than domain.com.user. Hmm. . . this may very well cause problems
> with the on disk structure. But then again, I don't know all what
> I'm talking about.
It doesn't. Thats the point. Currently the disk structure enforces a
structure like user.username. I am changing this to domain.username
(Not a TLD, just the first part. So andrew.cmu.edu will require
user at andrew to login.)

> Best to consult Ken since he wrote that code ;)
I do plan to integrate this in later, but right now, I would like to
see all possible changes.
BTW, grep *is* is very good tool for this. I should have something up
in about an hour (all my changes commented out, but marked with a DVB).
Hopefully my code is commented well enough.

Devdas Bhagat

--
He has shown you, o man, what is good.  And what does the Lord ask of you,
but to do justice, and to love kindness, and to walk humbly before your God?







Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD