[imp] mail domains

Edwin Culp eculp@encontacto.net
Tue, 4 Jun 2002 11:41:55 -0700


Quoting Tjeerd van der Zee <Tjeerd.vdzee@chello.nl>:

| Hi,
| 
| is it possible to append the mail domain to the users login name ?
| 
| i've configured these two in config.php:
| 
| $servers['imap'] = array(
|     'name' => 'xar.nl',
|     'server' => 'localhost',
|     'protocol' => 'imap/notls',
|     'port' => 143,
|     'folders' => 'INBOX.',
|     'namespace' => '',
|     'maildomain' => 'xar.nl',
|     'smtphost' => 'localhost',
|     'realm' => '',
|     'preferred' => ''
| );
| 
| $servers['cyrus'] = array(
|     'name' => 'aequitas.dhs.org',
|     'server' => 'localhost',
|     'protocol' => 'imap/notls',
|     'port' => 143,
|     'folders' => 'INBOX.',
|     'namespace' => '',
|     'maildomain' => 'aequitas.dhs.org',
|     'smtphost' => 'localhost',
|     'realm' => '',
|     'preferred' => ''
| );
| 
| You can choose from the server list, but the mail domain isn't appended to
| the user.
| 
| for example i need to login as admin @ xar.nl
| but what i would like is to append the maildomain chosen from the server
| dropdown menu on login.

'realm' => 'maildomain.org',

should do it but if you need virtual domains you might want to look at

$conf['hooks']['vinfo'] = 'imp_get_vinfo';

in horde/imp/config/conf.php

ed
| 
| With kind regards,
| 
| Tjeerd van der Zee
| 
| 
|  


-- 


-------------------------------------------------------------
 http://insourcery.com - Mergence of Business and Technology  
          a "Griffin Plaza Partners, LLC" Company