<div dir="ltr"><div>I think I have found the issue: I'm missing the auth_proxy_self setting: <br></div><div><br></div><div><a href="https://doc.dovecot.org/configuration_manual/authentication/proxies/">https://doc.dovecot.org/configuration_manual/authentication/proxies/</a></div><div><br></div><div>When I set this to the IP of the server, it seems to perform the authentication without issues for webmail as external clients such as Thunderbird.</div><div><br></div><div>Greetings,</div><div>Camilo Sperberg<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 24, 2021 at 2:37 PM Camilo Sperberg <<a href="mailto:unreal4u@gmail.com">unreal4u@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi list!</div><div><br></div><div>I've configured dovecot-proxy to redirect users to another server if their data is indeed on that other server.</div><div><br></div><div>Webmail (which runs on the same machine) works perfectly fine, but clients such as Thunderbird and Outlook do not work as intended, I suspect it to be a problem with the IP that dovecot-proxy sees, but I can't figure out what is wrong: I've already done a lot of Googling and also tried to change the login_trusted_networks value, but to no avail.<br></div><div><br></div><div>I've enabled debug log and here is the relevant part of a call that fails and another one that succeeds (FYI 10.164.0.3 is the machine that is doing the proxying and where webmail is located, 10.164.0.20 is the 'node', these logs come from that node, doveconf -n is also provided in the gist):<br></div><div><a href="https://gist.github.com/unreal4u/64de0f05b6e3b98034cdb0ae52ce1196" target="_blank">https://gist.github.com/unreal4u/64de0f05b6e3b98034cdb0ae52ce1196</a></div><div><br></div><div>So as far as I can interpret the logs, in the failure case it is basically saying it should go to the node, despite it already being on that node:</div><div>Aug 24 11:29:07 mail-node-2 dovecot: auth: Debug: client passdb out: 
OK#0112#011user=me@XXXXXX.XX#011host=10.164.0.20#011port=143#011proxy#011pass=<hidden></div><div><br></div>In the success case, I don't see any mention of a proxy:<div>Aug 24 11:35:21 mail-node-2 dovecot: auth: Debug: client passdb out: OK#0116#011user=me@XXXXXXXXX.XX</div><div><br></div><div><br></div><div>What am I missing here? Has this something to do with authentication-allow-nets or authentication-allow-real-nets ? If so: where to define it? Is there something else I'm missing?<br></div><div><br></div><div>Thanks in advance for your help,</div><div>Camilo Sperberg<br></div></div>
</blockquote></div>