[imp] Cyrus "realms" vs IMP "realms"

Marc G. Fournier scrappy@hub.org
Sun, 1 Sep 2002 22:35:47 -0300 (ADT)


Morning all ...

	How do I make use of IMPs "realms" so that if I use a userid of
'admin', it connects to the server as 'admin@domain'?

	Basically, I need to be able to login to the IMAP server as
'admin@domain' ... on my test server, I have servers.php setup as:

$servers['cyrus'] = array(
    'name' => 'Cyrus IMAP Server',
    'server' => 'mail.pluto.hub.org',
    'protocol' => 'imap',
    'port' => 143,
    'folders' => '',
    'namespace' => 'INBOX.',
    'maildomain' => 'pluto.hub.org',
    'realm' => 'pluto.hub.org',
    'preferred' => '',
    'quota' => array(
        'driver' => 'cyrus',
        'params' => array(
            'login' => 'admin@pluto.hub.org',
            'password' => 'xxxxxxx'
        )
    )
);

	If I login as 'admin' through the login screen, I get the
following in my log file:

Sep  2 01:29:16 pluto HORDE[26687]: [imp] FAILED LOGIN 24.138.74.240 to mail.pluto.hub.org:143[imap] as admin [on line 161 of "/usr/local/www/pluto.hub.org/horde/imp/lib/IMP.php"]

	Yet, if I do it the way I need to (admin@pluto.hub.org), it allows
you to login, but the horde system seems to be tacking on an
@pluto.hub.org to admin@pluto.hub.org ...

Sep  2 01:32:13 pluto HORDE[33235]: [imp] Login success for admin@pluto.hub.org@pluto.hub.org [24.138.74.240] to {mail.pluto.hub.org:143} [on line 84 of "/usr/local/www/pluto.hub.org/horde/imp/redirect.php"]

	So, with the above that allows me to login to the mail server,
I have to, for instance, set 'admins' in horde/config/conf.php to
admin@pluto.hub.org@pluto.hub.org to get it to work ...

	Make sense?