[Dovecot] Proxying for some users and having the rest local?
Timo Sirainen
tss at iki.fi
Mon May 7 22:28:14 EEST 2012
On 7.5.2012, at 22.21, Dr Josef Karthauser wrote:
> password_query = SELECT user, domain, password, "masteruser" as master, "masterpass" as pass, proxy, "remoteimap.server" as host FROM mailboxes \
> WHERE user = '%n' AND isMailbox AND active AND domain = '%d'
>
> I imagined that I could switch the proxy per user by setting proxy='n' or proxy=null for any users that want to be local, and proxy='y' for any users that I want to forward on to the original server.
>
> It doesn't appear to work that way though. Irrespective of the proxy value dovecot appears to try and proxy all users.
If you return a host setting, Dovecot handles it as login referral: http://wiki2.dovecot.org/PasswordDatabase/ExtraFields/Host
So you need to return proxy=null and host=null.
If that doesn't seem to help, set auth_debug=yes and verify from the logs that neither of them are returned by auth process.
More information about the dovecot
mailing list