[imp] IMP 3.1 / user@domain.ext on virtual domains

eculp at encontacto.net eculp at encontacto.net
Tue Dec 17 19:54:16 PST 2002


Quoting Tobias Eigen <tobias@kabissa.org>:

 | Hi Ed,
 | 
 | OK, let me try this again.
 | 
 | 1. I have many domains on my server - about 500 in fact. I want to offer my
 | users webmail access to their IMAP mailboxes using IMP.
 | 
 | 2. I'm running a PLESK system (http://www.plesk.com) installed on Redhat 7.2
 | with qmail and courier-imap. This allows people to set up and manage
 | multiple
 | mailboxes on their domains, as well as aliases etc. I don't know what kind
 | of
 | accounts these are - but I think not system accounts but only with access to
 | imap mailboxes.

They are virtual, I'm sure  What happens if you try to login with the 
uid and domain name?  Do you get an error?  If so, how do you configure the 
UID on another mail client that will let you login?  

None of the answers below will work if you can't login with the UID and 
domain name.  

 | 
 | 3. I want to have a single login page to IMP at http://webmail.kabissa.org
 | (that's currently 2.2 - I'm testing 3.1 at http://webmail2.kabissa.org/imp)
 | 4. Currently, if I set the server to localhost and do not allow users the
 | option to specify the server name, then preferences are shared between
 | usernames. For example, if I have a user info@domain.ext and
 | info@domain2.ext
 | then the preferences for the two users will be the same. This affects
 | identities, filters, addressbook, etc. Not good.

Ok, I see your problem.  I don't have it because my users login with
their domain name but they are all on the same server with horde/imp.
Imp is configured to use localhost for all.  They use
  Mail.encontacto.net
  mail.monarchhost.com

I login as eculp on any of them and my vinfo hook adds @encontacto.net or
@monarchhost.com to my user name.  That also solves the problem with prefs,
etc.  

I identify the domain name by using $_SERVER['HTTP_HOST'] and you want to
identify the domain during/after login.  I've not done that although 
someone else asked that question a few weeks ago.  Possibly, you can find
in in the archives.

 | 
 | 5. Even if there is no overlap across domains I have a problem. When a user
 | logs into IMP for the first time, then the "from" address will be
 | incorrectly
 | specified as user@kabissa.org and not their own domain.ext. Their replies
 | then
 | will bounce. It's very frustrating for them.

I understand.

 | 
 | 6. My idea for solving the preferences and default identity problem is to
 | have
 | people log in with their full email address - username@domain.ext - which is
 | then broken apart to be used as follows:
 | 
 | username - to log in
 | username@domain.ext - for preferences in IMP
 | username@domain.ext - From address for default identity

That is the way hooks does it.

 | 
 | 7. I have the idea that this can be handled through hooks, but don't know
 | enough abou it to know how.
 | 
 | Does this help?
 
It does but a simple solution is dependent on your being able to login with
a uid and domain name, IMO.

ed

-------------------------------------------------



More information about the imp mailing list