Hello, reading the wiki I found http://wiki.dovecot.org/PasswordDatabase/ExtraFields/Proxy?highlight=(no DNS resolving) I have a setup where the destination of a proxyconnection is an DNS name. Is there a technical reason which currently require host= to be an IP address ? -- Andreas Schulze Internetdienste | P532 DATEV eG 90329 N?rnberg | Telefon +49 911 319-0 | Telefax +49 911 319-3196 E-Mail info @datev.de | Internet www.datev.de Sitz: 90429 N?rnberg, Paumgartnerstr. 6-14 | Registergericht N?rnberg, GenReg Nr.70 Vorstand Prof. Dieter Kempf (Vorsitzender) Dipl.-Kfm. Wolfgang Stegmann (stellvertretender Vorsitzender) Dipl.-Kfm. Michael Leistenschneider J?rg Rabe v. Pappenheim Dipl.-Vw. Eckhard Schwarzer Vorsitzender des Aufsichtsrates: Reinhard Verholen -------------- next part -------------- A non-text attachment was scrubbed... Name: GnuPG-Signatur.asc Type: application/pgp-signature Size: 315 bytes Desc: digitale Signatur dieser Nachricht von Andreas Schulze URL: <http://dovecot.org/pipermail/dovecot/attachments/20100125/d8ef1ae9/attachment-0002.bin>
On Mon, 2010-01-25 at 13:58 +0100, Andreas Schulze wrote:> Hello, > > reading the wiki I found > http://wiki.dovecot.org/PasswordDatabase/ExtraFields/Proxy?highlight=(no DNS resolving) > > I have a setup where the destination of a proxyconnection is an DNS name. > Is there a technical reason which currently require host= to be an IP address ?Yeah. DNS lookups are blocking, so whenever DNS server can't be reached, the lookups start hanging and admins start wondering why Dovecot is just hanging. Solutions would be: a) Assume "the hang never happens" and just do the blocking lookups. b) Get some async DNS library from somewhere. c) With v2.0 there could be a separate dns lookup processes that do blocking lookups, but since the caller processes would be doing async lookups they could report errors after a couple of seconds of waiting. Hmm. Actually I think I like c). -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20100125/15d2eeb6/attachment-0002.bin>
On Mon, 2010-01-25 at 20:53 +0200, Timo Sirainen wrote:> > b) Get some async DNS library from somewhere.I have been looking for that as well recenly, and I stumbled upon the unbound library, part of the unbound project. http://unbound.net/documentation/libunbound.html HTH, Mike.