[imp] Login in IMP without the @domain.com part
Mário Gamito
gamito at netual.pt
Thu Sep 16 09:39:17 PDT 2004
Hi Edwin,
I had 'realm' => 'mail.epaveiro.edu.pt' and changed it the way you said
as you can see below, but no good :(
---------------------------------------
$servers['imap'] = array(
'name' => 'IMAP Server',
'server' => 'mail.epaveiro.edu.pt',
'protocol' => 'imap/notls',
'port' => 143,
'folders' => '',
'namespace' => 'INBOX.',
'maildomain' => 'epaveiro.edu.pt',
'smtphost' => 'mail.epaveiro.edu.pt',
'realm' => 'epaveiro.edu.pt',
'preferred' => ''
);
----------------------------------------
I've already been around the vinfo hook, but i must admit i didn't
understand it completely.
Would you care please to explain it to me ?
I'd be eternaly grateful.
I beg your apolagises for asking this directly, but i'm working on this
all day long and... nothing :(
The domain is epaveiro.edu.pt and the FQDN is mail.epaveiro.edu.pt
Warm regards,
Mário Gamito
* ex. $HTTP_HOST = 'mail.mydomain.com', $imp['user'] = 'myname'
/* $vdomain = 'epaveiro.edu.pt'
$username = 'foobar_epaveiro_edu_pt' */
/* if (!function_exists('imp_get_vinfo')) {
function imp_get_vinfo ($type = 'username') {
global $conf;
$vdomain = getenv('HTTP_HOST');
$vdomain = preg_replace('|^mail\.|i', '', $vdomain);
$vdomain = strtolower($vdomain);
if ($type == 'username') {
return preg_replace('|\.|', '_', $_SESSION['imp']['user']
. '_' . $vdomain);
} elseif ($type == "vdomain") {
return $vdomain;
} else {
return new PEAR_Error('invalid type: ' . $type);
}
}
} */
More information about the imp
mailing list