[imp] Virtual hosting questions..

Edwin Culp eculp@encontacto.net
Sat, 4 May 2002 08:33:06 -0700


Quoting Chad Day <cday@atpco.com>:

| I'm not following.. could you give me a little more information about what
| you did?  I'm sorry I'm a little in the dark here.. if you have some
| examples you can show me from your servers.php file or something, or
| anything that would clue me in a little bit, I would greatly appreciate it.
| 
| Thanks,
| Chad

Chad,

First of all I'm using the courier mail suite for esmtp, pop3, imapd.
I chose it because it facilitates virtual users and domains and doesn't
need to use systems files. /etc/password /etc/group.  You can use it 
with ldap/mysql etc.  I use ldap.  Courier will also support local users
although I can see no reason for it.

To login to a virtual account in courier imap or pop3 you use the complete
email address, eculp@encontacto.net.  This solves your issues with both
jsmith@otherdomain.com/jsmith@blahblah.com who are now different login's
and jsmith@otherdomain.com could not login at jsmith@yetanotherdomain.com.

I use the imp_get_vinfo function to concatenate the domain name with the
user name so that when jsmith wants to login to mail.otherdomain.com courier
impd will receive jsmith@otherdomain.com without him having to type it.
The same will work for jsmith@blahblah.com.  No confusion, no complications,
it works fine but does depend on your imap/pop3 server. [ This does require
apache virtual hosts which you probably already have. ] 

As I mentioned above, I also user courier for incoming and it delivers the
mail to the maildir defined in the ldap attribute homeDirectory for the
email address.  Again no complication.

I hope this helps.

ed

| 
| -----Original Message-----
| From: Edwin Culp [mailto:eculp@encontacto.net]
| Sent: Friday, May 03, 2002 12:01 PM
| To: Chad Day
| Cc: imp@lists.horde.org
| Subject: Re: [imp] Virtual hosting questions..
| 
| 
| Quoting Chad Day <cday@atpco.com>:
| 
| | 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.
| |
| 
| The following two questions are the reasons that I use vinfo and courier
| IMAP with virtual domains.
| 
| | 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
| |
| |
| | --
| | IMP mailing list
| | Frequently Asked Questions: http://horde.org/faq/
| | To unsubscribe, mail: imp-unsubscribe@lists.horde.org
| |
| 
| 
| -----------------------------------------------------------------------
|        The illiterate of the 21st century will not be
|              those who cannot read and write,
|        but those who cannot learn, unlearn and relearn.
|                                                 --Alvin Toffler
| 
| -------------------------------------------------------------
|  http://insourcery.com - Mergence of Business and Technology
|           a "Griffin Plaza Partners, LLC" Company
| 
| 


-----------------------------------------------------------------------
       The illiterate of the 21st century will not be
             those who cannot read and write,
       but those who cannot learn, unlearn and relearn.
                                                --Alvin Toffler

-------------------------------------------------------------
 http://insourcery.com - Mergence of Business and Technology  
          a "Griffin Plaza Partners, LLC" Company