[pfx] Re: connect to pgsql server could not translate host name

2024-07-28 Thread Wietse Venema via Postfix-users
Wietse Venema via Postfix-users: > Viktor Dukhovni via Postfix-users: > > On Sun, Jul 28, 2024 at 09:37:19PM +1000, Viktor Dukhovni via Postfix-users > > wrote: > > > > > Yes, but the chrooted smtpd(8) process reads: > > > > > > /var/spool/postfix/etc/resolv.conf > > > > > > rather than /et

[pfx] Re: connect to pgsql server could not translate host name

2024-07-28 Thread Wietse Venema via Postfix-users
Viktor Dukhovni via Postfix-users: > On Sun, Jul 28, 2024 at 09:37:19PM +1000, Viktor Dukhovni via Postfix-users > wrote: > > > Yes, but the chrooted smtpd(8) process reads: > > > > /var/spool/postfix/etc/resolv.conf > > > > rather than /etc/resolv.conf, because that's what chroot jails do.

[pfx] Re: connect to pgsql server could not translate host name

2024-07-28 Thread Viktor Dukhovni via Postfix-users
On Sun, Jul 28, 2024 at 09:37:19PM +1000, Viktor Dukhovni via Postfix-users wrote: > Yes, but the chrooted smtpd(8) process reads: > > /var/spool/postfix/etc/resolv.conf > > rather than /etc/resolv.conf, because that's what chroot jails do. > And the same applies to /etc/hosts, /etc/nsswi

[pfx] Re: connect to pgsql server could not translate host name

2024-07-28 Thread Viktor Dukhovni via Postfix-users
On Sun, Jul 28, 2024 at 11:00:30AM +, Laura Smith via Postfix-users wrote: > > On Sun, Jul 28, 2024 at 09:45:45AM +, Laura Smith via Postfix-users > > wrote: > > > > > The reporting program is postfix/smtpd > > > > > > postconf output: > > > > > > smtp inet n - y - - smtpd > > > > >

[pfx] Re: connect to pgsql server could not translate host name

2024-07-28 Thread Laura Smith via Postfix-users
> > > I know you're desperately trying to finger point elsewhere but I'm > > pretty sure you are barking up the wrong tree. Everything else > > works, apart from postfix. > > > At the risk of demonstrating my level of thick I have seen similar > messages about "Temporary failure in name reso

[pfx] Re: connect to pgsql server could not translate host name

2024-07-28 Thread Bob via Postfix-users
On Sun, 2024-07-28 at 11:00 +, Laura Smith via Postfix-users wrote: > I know you're desperately trying to finger point elsewhere but I'm > pretty sure you are barking up the wrong tree.  Everything else > works, apart from postfix. At the risk of demonstrating my level of thick I have seen sim

[pfx] Re: connect to pgsql server could not translate host name

2024-07-28 Thread Laura Smith via Postfix-users
> On Sun, Jul 28, 2024 at 09:45:45AM +, Laura Smith via Postfix-users wrote: > > > The reporting program is postfix/smtpd > > > > postconf output: > > > > smtp inet n - y - - smtpd > > > It runs in a chroot jail, where likely /etc/resolv.conf or related > files are different from the ve

[pfx] Re: connect to pgsql server could not translate host name

2024-07-28 Thread Viktor Dukhovni via Postfix-users
On Sun, Jul 28, 2024 at 09:45:45AM +, Laura Smith via Postfix-users wrote: > The reporting program is postfix/smtpd > > postconf output: > > smtp inet n - y - - smtpd It runs in a chroot jail, where likely /etc/resolv.conf or related files are different

[pfx] Re: connect to pgsql server could not translate host name

2024-07-28 Thread Laura Smith via Postfix-users
> > But I cannot understand why. Running, e.g. "dig foo.example.com" > > returns instantly with the IP address, no problems with resolution? > > > Are you typing that command as root? Most Postfix daemons don't. > Yes, of course ! dig is a simple command that doesn't require root privilege

[pfx] Re: connect to pgsql server could not translate host name

2024-07-27 Thread Wietse Venema via Postfix-users
Laura Smith via Postfix-users: > I'm getting the following in my logs: > > "warning: connect to pgsql server foo.example.com: could not > translate host name "foo.example.com" to address: Temporary failure > in name resolution?" That is a text from the pgsql library. > But I cannot understand w

[pfx] Re: connect to pgsql server could not translate host name

2024-07-27 Thread Laura Smith via Postfix-users
Note that my copy/paste messed up the formatting, of course my user= line is on a seperate line: hosts=foo.example.com user=myuser password=mypass dbname=mydb query=select foo from bar('%s') ___ Postfix-users mailing list -- postfix-users@postfix.org To