[Dovecot] IMAP proxy - can it detect parodying to itself?
Hi all,
I have some IMAP servers fronted with separate perdition processes, and it would be ideal if I could collapse this down to having dovecot do both the IMAP proxying and the IMAP serving at the same time on the same IP addresses.
One of the fields in my LDAP entries contains the canonical name of the server that hosts their mailbox, and if I follow the manual at http://wiki2.dovecot.org/PasswordDatabase/ExtraFields#LDAP I could add the host field to enable proxying.
My question is whether dovecot has the ability to notice whether dovecot is being asked to proxy to itself, in other words the value of "host" is the current dovecot server, and when this happens, ignore the proxy and just be a straight IMAP server, because the user has connected to the right box already.
Is this possible?
Regards, Graham
On 26 Nov 2012, at 4:24 PM, Graham Leggett <minfrin@sharp.fm> wrote:
I have some IMAP servers fronted with separate perdition processes, and it would be ideal if I could collapse this down to having dovecot do both the IMAP proxying and the IMAP serving at the same time on the same IP addresses.
A heartfelt thanks to Apple Autocorrect for changing "parodying", oops, I meant "parodying", aargh, I meant "p r o x y i n g", to parodying in the subject of this message.
Regards, Graham
At 4PM +0200 on 26/11/12 you (Graham Leggett) wrote:
Hi all,
I have some IMAP servers fronted with separate perdition processes, and it would be ideal if I could collapse this down to having dovecot do both the IMAP proxying and the IMAP serving at the same time on the same IP addresses.
One of the fields in my LDAP entries contains the canonical name of the server that hosts their mailbox, and if I follow the manual at http://wiki2.dovecot.org/PasswordDatabase/ExtraFields#LDAP I could add the host field to enable proxying.
You also need the 'proxy' or 'proxy_maybe' field, which is a boolean (the field just needs to be present). If you just configure 'host' you will get login referrals, which is not what you want.
My question is whether dovecot has the ability to notice whether dovecot is being asked to proxy to itself, in other words the value of "host" is the current dovecot server, and when this happens, ignore the proxy and just be a straight IMAP server, because the user has connected to the right box already.
This is what happens if you use 'proxy_maybe' instead of 'proxy'.
Ben
participants (2)
-
Ben Morrow
-
Graham Leggett