Wouter de Jong
2007-Feb-15 15:14 UTC
[Dovecot] Dovecot proxy question (hostname instead of ip)
Hello, We are planning to use the Proxy feature of Dovecot, but fail to implement it currently the way we would like to. Reason is that proxy insists to have an IP-address as host : Feb 15 15:43:24 proxy-test.widexs.nl dovecot: pop3-login: proxy(username): mspool01-test.widexs.nl is not a valid IP When I changed the query to force the IP-address of the above server, it works. Would it be possible to make this work, but more important ... Are there any reasons NOT to make this work ? :)) Kind regards, Wouter. -- WideXS http://www.widexs.nl Wouter de Jong System-Administrator Tel +31 (0)23 5698070 Fax +31 (0)23 5698099 Bijlmermeerstraat 62, 2131 HG HOOFDDORP, NL
Timo Sirainen
2007-Feb-15 16:45 UTC
[Dovecot] Dovecot proxy question (hostname instead of ip)
On Thu, 2007-02-15 at 16:14 +0100, Wouter de Jong wrote:> Feb 15 15:43:24 proxy-test.widexs.nl dovecot: pop3-login: proxy(username): > mspool01-test.widexs.nl is not a valid IP..> Are there any reasons NOT to make this work ? :))It requires DNS resolving and there's no way to do nonblocking DNS resolving with libc. Although in login processes this wouldn't matter as long as login_process_per_connection=yes. Then again in proxying use that setting is often set to "no".. Nonblocking DNS resolving could be done with an external library, or I could of course implement my own. But since proxy is the pretty much the only place where this currently could be useful, I haven't really bothered to do either of those. Or I could simply implement the blocking DNS resolving and you'll just have to make sure that your DNS servers are always responding and doing it fast enough not to cause problems. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20070215/a1693b96/attachment.bin>