That's it, I knew someone would recall its function name :)

On Sun, 2012-10-21 at 23:11 +0200, Cor Bosman wrote:
Your imap server needs to support impersonation. Dovecot does this, maybe others as well. 

http://wiki2.dovecot.org/Authentication/MasterUsers