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

Tobias Eigen tobias at kabissa.org
Tue Dec 17 21:19:05 PST 2002


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.  

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. 

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. 

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

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? 

Cheers,

Tobias

-- 
Tobias Eigen
tobias@kabissa.org

Kabissa - Space for change in Africa
http://www.kabissa.org


Quoting eculp@encontacto.net:

> Quoting Tobias Eigen <tobias@kabissa.org>:
> 
>  | Hi Ed,
>  | 
>  | Thanks for the (quick!) reply. I'm not sure if I am using "virtual
> domains"
>  | as
>  | you describe, but I thought I was. Can you tell me how to find out?
> 
> To login to your imap or pop3 server your user will have include the domain.
> Your users probably don't have systems accounts on your server.
> 
>  | 
>  | I'm using IMAP to authenticate, and IMP for HORDE authentication.
>  | 
>  | There is but one way into IMP at the moment: http://webmail2.kabissa.org
>  | 
>  | When it's ready, I want to move this to http://webmail.kabissa.org
>  | 
>  | My understanding, with my limited coding capability, of the vinfo hook is
>  | that
>  | it uses the $HTTP_HOST variable to get the domain name - what I actually
>  | want
>  | is for users to specify the domain name when they log in - ie. instead
>  | of 'username' they type in 'username@domain.com'. 
> 
> That is the default operation for virtual domains in courier, AFAIK.  It
> sounds like your users have systems accounts.
> 
>  | The server name would then
>  | always be localhost (they can't choose). 
> 
> I would assume that you only have one machine for imap, is that correct?
> If it is just use localhost in horde/imp/servers.php.  
> 
>  | Is there a way to use the hook for
>  | this purpose?
> 
> I'm not sure if I understand why.  You are only using one server you can set
> it to localhost no matter what the virtual domain is.  It would appear that
> you
> need to configure courier-imap for virtual hosts, select a backend, and then
> use hooks to facilitate login for your users. [ tobias rather than 
> tobias@kabissa.org ]  
> 
> I'm sorry but I am afraid I may not be understanding what you want to do 
> clearly.
> 
> ed
> 
> -------------------------------------------------
> 
> 



More information about the imp mailing list