[imp] Using with sendmail virtual domains on one IP.

Ronald Bootsman ronald@bootsman.net
Tue, 13 Mar 2001 15:18:45 +0100


Use this servers.php in horde/imp/config

<?php
$domain=preg_replace("/(\w+)\.([\w\-]+)\.(\w+)\:*.*/",
"\\2.\\3",$GLOBALS['HTTP_SERVER_VARS']['SERVER_NAME']);

$servers['imap'] = array(
    'name' => $domain,
    'server' => 'host.domain.org',
    'protocol' => 'imap',
    'port' => 143,
    'folders' => 'mail/',
    'namespace' => '',
    'maildomain' => $domain,
    'preferred' => "webmail.$domain"
);

?>

I wanted the same functionality, check your etc/sendmail.cf for Masquerading
functionality (DM or Dm must be empty)
The mailinglist provided me this info.



Ronald Bootsman

Email      Ronald@BootsmanNet

----- Original Message -----
From: "Dmitri B. Gofmekler" <gosha@arvid.ee>
To: <imp@lists.horde.org>
Sent: Tuesday, March 13, 2001 2:04 PM
Subject: [imp] Using with sendmail virtual domains on one IP.


| Hello,
|
| I know that it is not from IMP - to support virtual domains, but...
|
| Is it possible to configure the IMP for showing a domain-list in combo-box
| in login screen and perform some username conversion based on domain name,
| like virtusertable in sendmail does, for example, in my sendmail I use:
|
| @domain.com            dom-%1
|
| So I need to add a "dom-" prefix for each username if domain "domain.com"
is
| selected and "foo-" prefix if "foodomain.com" is selected.
|
| Is there any way to support this?
|
|
| Thanks in advance,
| ==============================
| Dmitri B. Gofmekler <gosha@arvid.ee>
| A-Arvid Computers, GSM: +3725027705, Fax: +3726563000
|
|
| --
| IMP mailing list: http://horde.org/imp/
| Frequently Asked Questions: http://horde.org/faq/
| To unsubscribe, mail: imp-unsubscribe@lists.horde.org
|