username mapping for imap/pop

Igor Sysoev igor at
Mon Jan 13 07:58:20 UTC 2014

On Jan 13, 2014, at 2:27 , bidwell wrote:

> I need to map from username to login name where I wish to map from just
> username to username at for gmail and windomain\username for an
> exchange server.  Is there a way for me to build in hooks to change the
> username before connecting.  I can to that in my module but
> don't know how to return the updated username.

You can return it via header:
Auth-User: user at

Igor Sysoev

More information about the nginx mailing list