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

Dmitri B. Gofmekler gosha@arvid.ee
Tue, 13 Mar 2001 15:28:14 +0200


Big thanks for the answer, Ronald, but...

I'm not familiar with PHP, would you please comment out the code and also
tell me where to write down the servers/domains list and username convesion
rule(s). And also format if this if not diffcult.

Thanks in advance,
Dmitri.

> 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