IMP is the Internet Messaging Program. It is written in PHP and provides WebMail access to IMAP and POP3 accounts. Built on the Horde framework.
Based on vhost, you can log into multiple servers.. flesh me out, but basically edit the array in /etc/imp3/servers.conf
Set
And create a function like so (NOTE: new syntax for 3.2.2)
if (!function_exists('imp_get_vinfo')) {
function imp_get_vinfo ($type = 'username') {
global $conf, $imp;
$vdomain = getenv('HTTP_HOST'); $vdomain = preg_replace('|^webmail\.|i', '', $vdomain); $vdomain = strtolower($vdomain);
if ($type == 'username') {
} elseif ($type == "vdomain") {
return $vdomain;
} else {
return new PEAR_Error('invalid type: ' . $type);
}
}
}
This syntax is for Metanet Mail, where you log into Cyrus as user@domain.tld. It will remove webmail. from the vhost you connected from, and offer @the.rest.of.it as the suffix for the login, so you only have to enter 'user' into the webmail box.
Smarter people can make it domain by domain specific by editing the function.
3 pages link to IMP:
lib/main.php:944: Notice: PageInfo: Cannot find action page