6.0.0-beta6
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
4/10/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#9709] Virtual domain support
*
Your Email Address
*
Spam protection
Enter the letters below:
. .. ..__..___.__. |_/ |__|| |[__ | | | \| ||__\| |__\
Comment
> In my Horde3/IMP4, I used to have a custom hook function in the > horde/imp/config/hooks.php to support multidomains that I am hosting. > The user points its browser to mail.domain.com, the the login window > displays "@domain.com" at the end of the username field and horde/imp > provides username@domain.com to the IMAP server > (qmail/vpopmail/courier-imap). > > This function looks like this: > if (!function_exists('_imp_hook_vinfo')) { > function _imp_hook_vinfo($type = 'username') > { > $vdomain = getenv('HTTP_HOST'); > $vdomain = preg_replace('|^(web)?mail\.|i', '', $vdomain); > $vdomain = preg_replace('|^imp\.|i', '', $vdomain); > $vdomain = String::lower($vdomain); > > if ($type == 'username') { > if ($vdomain == '') { > return $_SESSION['imp']['user']; > } else { > return (preg_replace('|@.*$|', '', > $_SESSION['imp']['user']) . '@' . $vdomain); > } > } elseif ($type == 'vdomain') { > return $vdomain; > } else { > return PEAR::raiseError('invalid type: ' . $type); > } > } > } > > I did not find such a feature in Horde4/IMP5. > I have tried to play a bit with the hook public function > authusername($userId, $toHorde) in horde/config/hooks.php > but users still need to provide user@domain.com to logon (and they > are recognized as user@domain.com@domain.com by horde) and the logon > window does not displays "@domain.com" after the username field. > > Am I missing something ? > > Thanks for your support, > Antoine.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers