Graham Leggett
2012-Nov-26 14:24 UTC
[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 -- -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4365 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20121126/b718e8e0/attachment-0004.bin>
Graham Leggett
2012-Nov-26 14:26 UTC
[Dovecot] IMAP proxy - can it detect parodying to itself?
On 26 Nov 2012, at 4:24 PM, Graham Leggett <minfrin at 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 -- -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4365 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20121126/0bb4985e/attachment-0004.bin>
Ben Morrow
2012-Nov-26 16:02 UTC
[Dovecot] IMAP proxy - can it detect parodying to itself?
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