Sorry for my English.
I have a decentralized system of mail, the user can view the mails from your intranet (a local server) and can also see them from internet (accessing a public ip).
I can access the mails using imap in the login, but I can not change in a dynamic access to contacts remotely (mysql). Since it depends on the intranet is the mysql user must be redirected to this host.
Any help?