[imp] Virtual hosting questions..
Chad Day
cday@atpco.com
Fri, 3 May 2002 13:34:27 -0400
Thanks, Magnus.
What I decided on doing was something like this:
When I create a user, in another associated application I am running, they
are assigned a user ID #, so when I create the mail user, I just do
something like:
jsmith_userid#
and then alias jsmith@virtdomain.com to jsmith_userid#
Of course, that only works for incoming mail.. and they still have to sign
in with jsmith_userid# when they are logging into IMP. Is there a way I can
have them sign in on their virtual domain with jsmith, and have it look up
the appropriate mailbox? Also, like I said I know the alias only works for
incoming, so when they try to send mail it's going to be jsmith_userid#,
instead of jsmith.. I saw in the archives that I should try enabling
genericstable in my sendmail.mc file, but my problem is I *have* no
sendmail.mc file on my server.. it was already built, I didn't do it from
scratch (it's v8.11.0). I know this is an offtopic question, but does
anyone have any ideas on what to do? Should I try grabbing a generic
v8.11.0 sendmail.mc file, plugging it in, and enabling genericstable?
As for storing the information in a database, yeah, I probably should.. but
I have enough to tackle right now I think. I'll worry about that later. :)
Thanks,
Chad
-----Original Message-----
From: Magnus Lundstedt [mailto:magnus@lundstedt.it]
Sent: Friday, May 03, 2002 12:33 PM
To: Chad Day
Subject: Re: [imp] Virtual hosting questions..
I can answer some of your questions, but other not.
Chad Day wrote:
> 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?
If you have one mailservet whith multiple virtual domains, i recomend yo
to have virtual aliases for everyone, exept your own domain.
then you can set jsmith@blaha.com --> bc1234
jsmith@lalala.net --> bc1235
and so on.
if you hope on a big site, i also recomend you to store the userinfo in
some kind of sql database, mysql for example.
Then it is easier to maintain.
the user then can only log in with his own account.
> 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
>
>