[imp] mail domains
Edwin Culp
eculp@encontacto.net
Wed, 5 Jun 2002 06:54:19 -0700
Tjeerd,
I forgot on thing in my previous emailthat may not be obvious,
my server.php file I only have one defined server that is based
on the calling url.
$vdomain = strtolower(preg_replace('|^mail\.|i', '', $_SERVER['HTTP_HOST']));
$servers['_prompt'] = array(
'name' => 'Choose a mail server:'
);
$servers['imap'] = array(
'name' => $vdomain,
'server' => $vdomain,
'protocol' => 'imap',
'port' => 143,
'folders' => 'INBOX.',
'namespace' => '',
'maildomain' => $vdomain,
'smtphost' => $vdomain,
'realm' => '',
'preferred' => $vdomain
);
It too is dynamic so I don't have to reconfigure if I copy my test version
to production. Unfortunately, all based on a mail.$vdomain but a case
statement could easily change that:-)
I hope this helps,
ed
Quoting Tjeerd van der Zee <Tjeerd.vdzee@chello.nl>:
| $conf['hooks']['vinfo'] = 'imp_get_vinfo';
|
| isn't a sollution yet since it would require both domains to have an
| aditional a-record in
| the zone file for them.
|
| for xar.nl i can do this,
| but for aequitas.dhs.org i can't.
|
| I found out what the problem is,
|
| When using the realms in server.php
|
| the realm does get appended to the users login name ....
|
| but then the preference driver fails to come up with the right dn in ldap.
|
| e.g.
|
| when logging in without the realms with admin @ xar.nl
|
| this is the result for the login and preference driver:
|
| mail= admin @ xar.nl ,ou=xar.nl,ou=mailaccounts,o=xar.nl
|
| This works perfect.
|
| but this is the result when appending the realm from server.php to the
| user's
| login in name.
|
| When loging in with admin:
|
| mail= admin @ xar.nl,ou=mailaccounts,o=xar.nl
|
| Then the preference driver keeps it stricly to the basedn given in
| horde.php.
|
| Any ideas ?
|
| With kind regards,
|
| Tjeerd van der Zee
|
|
| ----- Original Message -----
| From: "Edwin Culp" <eculp@encontacto.net>
| To: <imp@lists.horde.org>
| Sent: Tuesday, June 04, 2002 8:41 PM
| Subject: Re: [imp] mail domains
|
|
| > 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
| >
| > --
| > IMP mailing list
| > Frequently Asked Questions: http://horde.org/faq/
| > To unsubscribe, mail: imp-unsubscribe@lists.horde.org
| >
--
-------------------------------------------------------------
http://insourcery.com - Mergence of Business and Technology
a "Griffin Plaza Partners, LLC" Company
-------------------------------------------------------------
http://insourcery.com - Mergence of Business and Technology
a "Griffin Plaza Partners, LLC" Company