[imp] Virtual hosting questions..

Chad Day cday@atpco.com
Fri, 3 May 2002 09:19:54 -0400


Ok, after a lot of banging away, I think I finally got the virtual hosting
working, but I have some questions.

I don't have the vinfo hook on .. when I tried to turn it on, whenever a
user would log in, there would be a delay, then they'd be kicked back to the
login screen.  Don't know why..

My servers.php looks like:

$this_domain=substr(getenv('HTTP_HOST'),strpos(getenv('HTTP_HOST'),'.')+1);

$servers['imp'] = array(
    'name' => 'IMAP Server',
    'server' => $this_domain,
    'protocol' => 'imap',
    'port' => 143,
    'folders' => 'mail/',
    'namespace' => '',
    'maildomain' => $this_domain,
    'smtphost' => 'smtp.online-leagues.com',
    'realm' => '',
    'preferred' => ''
);

It works, but I'm a ltitle concerned since everyone else seems to be using
the vinfo hook and I am not.  Did I mess up?

So, now, people can go to mail.blahblah.com, or mail.ladeda.com, and log in
on both, and the from addresses are correct.

My question is.. what if I want jsmith, who should have jsmith@blahblah.com,
only to be able to access that?  I don't want him finding out he can log in
to mail.ladeda.com and send out emails like jsmith@ladeda.com.

Also, what happens when I grow and have multiple jsmiths?  Say another
different jsmith comes along, and I want to set him up with
jsmith@otherdomain.com, but jsmith@blahblah.com is still around.  Should I
start assigning local usernames in the format jsmith_domain, so that isn't
an issue, and somehow alias jsmith@blahblah.com to that?  And how would that
person log in on IMP then?

Sorry for asking these, I poured over the mailing list archives for like 2
hours last night, which is how I got to where I am at least .. might just be
suffering from information overload from reading all that stuff over and
over.

Thanks,
Chad