[imp] Virtual domains IMP
Devin Atencio
dreamboy@aros.net
Wed, 9 Jan 2002 15:53:05 -0700
Dear Ethy,
I do the same similar thing for my company except in a different format.
To make it work in your situation you could do the following.
You would need to make sure you had IMP configured with server with the
Following:
/horde/imp/config/conf.php (make sure it has the following):
$conf['server']['server_list'] = true;
$conf['server']['server_list_hidden'] = true;
then you need to have in your
/horde/imp/config/servers.php (something like this):
$servers['yourdomain.com'] = array(
'name' => 'IMAP Server',
'server' => 'yourdomain.com',
'protocol' => 'imap',
'port' => 143,
'folders' => 'mail/',
'namespace' => '',
'maildomain' => 'yourdomain.com',
'smtphost' => 'yourdomain.com',
'realm' => 'yourdomain.com',
'preferred' => ''
);
Then once you have that set, you need to edit the following file:
/horde/imp/redirect.php, first look for the line that says:
/* Create a new session if we're given the proper parameters. */
if (isset($HTTP_POST_VARS['imapuser']) &&
isset($HTTP_POST_VARS['pass'])) {
Then after this line add the following lines:
$exp_imapuser = explode("#",$HTTP_POST_VARS['imapuser']);
$HTTP_POST_VARS['imapuser'] = $exp_imapuser[0];
$HTTP_POST_VARS['server'] = $exp_imapuser[1];
Then safe the file, and on your login page do the following, for the
Username use the format: login#domain, and it should log you in as long
As in your servers.php you make sure the $servers['domainname.com'] is
the
Same as the domain in your login#domain format.
-----Original Message-----
From: Ethy H. Brito [mailto:ethy@inexo.com.br]
Sent: Wednesday, January 09, 2002 3:24 PM
To: imp@lists.horde.org
Subject: [imp] Virtual domains IMP
Dear Guru
I intend use IMP-3.0 in a virtual domain environment.
The username is in the form "user#domain".
It is working (sort of). But when IMP send an email the user anounces
itself as
"user#domain@domain" which is not correct. I do not want to modify the
user's
identity of every users or force the user to modify it. Furthermore IMP
is
wrongly generating the mail envelope I think due to "#" in the user
name.
That said, I would like to patch IMP to extract
"domain" from HTTP_HOST and insert it in username under the form above.
That way the user would login at http://www.domain/hord/imp as "foo" and
be
authenticated against IMAP as "foo#domain"
Would you please point me the file(s) to patch?
Regards
Ethy H. Brito /"\
InterNexo Ltda. \ / CAMPANHA DA FITA ASCII - CONTRA MAIL HTML
+55 (12) 3941-6860 X ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
S.J.Campos - Brasil / \
--
IMP mailing list: http://horde.org/imp/
Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: imp-unsubscribe@lists.horde.org