On 15 Aug 2014, at 18:28, Brendan brendan@tucows.com wrote:
the authenticate hook fires during the login process (http://trac.roundcube.net/wiki/Plugin_Hooks#authenticate) and allows you to override the hostname - perhaps you could use this hook to do what you need? the CSR reps could use a special username format, then the authenticate hook could return the true username with the internal imap server that allows impersonation.
No, I dont need the actual hostname to change. I just need the database column for mail_host to stay the same for different imap servers. Else you end up with multiple preferences, one row for each imap server.
It looks as if this can be accomplished by an extra hook in rcube_user::query()
Cor