Hi, There is a small typo in src/lib/network.c line 624 return "A non-recovable name server error occurred"; should be return "A non-recoverable name server error occurred"; Sorry about the pedantry. BTW, I am getting this error whenever I am trying to resolve a name from inside dovecot, but I can using the system tools. I am trying to get the proxying code to use hostnames as well as IP addresses. -Abhijit.
On 3.11.2007, at 7.54, Abhijit Hoskeri wrote:> There is a small typo in src/lib/network.c line 624 > > return "A non-recovable name server error occurred";Fixed: http://hg.dovecot.org/dovecot-1.0/rev/90b7671c8f2e> Sorry about the pedantry. BTW, I am getting this error whenever I am > trying to resolve a name from inside dovecot, but I can using the > system > tools. I am trying to get the proxying code to use hostnames as > well as > IP addresses.The problem is most likely that login process is running chrooted. login_chroot=no would help. Another way would be to do this in dovecot-auth, but if it's done there it should be done asynchronously (or in auth worker processes) and doing async dns lookups would require some async dns library.. -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20071103/8137fd40/attachment-0002.bin>
On Sat, Nov 03, 2007 at 12:15:31PM +0200, Timo Sirainen wrote:> The problem is most likely that login process is running chrooted. > login_chroot=no would help.It does - thanks a lot, I had been struggling for hours!> Another way would be to do this in dovecot-auth, but if it's done > there it should be done asynchronously (or in auth worker processes) > and doing async dns lookups would require some async dns library..Now, I think I understand why you had not done something like this already. * Copying some files into the chroot may be one way... * When you say auth-worker processes, do you mean I need to create a separate helper program just to do DNS lookups? Let me try... :-) There is one more thing I need to do - create a config variable/file which contains the list of 'host' values which refer to the local system - then we will be set. -Abhijit