Dnia 28.01.2020 o godz. 19:53:42 Hamid M. pisze:
> Thanks for your reply. I moved the socket folder into Postfix's jail
> "/var/spool/postfix/postgresql":
> 
> ls -ld /var/spool/postfix/postgresql
> drwxrwsr-x 2 postgres postgres 4096 Jan 29 00:45 postgresql/
> 
> Postgresql starts correctly and creates the socket, however the issue
> remains, i.e, I can connect to sever using
> "psql" but I get same error messages from Postfix:
> 
> Jan 29 00:47:19 mail postfix/trivial-rewrite[10046]: warning: connect to
> pgsql server /var/spool/postfix/postgresql:
> could not connect to server: No such file or directory??
> Is the server running locally and accepting??connections on Unix domain
> socket "/var/spool/postfix/postgresql/.s.PGSQL.5432"??

If you have the socket in /var/spool/postfix/postgresql, then you need to
specify path to socket in Postfix configuration taking into account the
chroot jail, ie. not "/var/spool/postfix/postgresql", but just "postgresql".

Alternatively, you can create
/var/spool/postfix/var/spool/postfix/postgresql directory, as Viktor wrote.
-- 
Regards,
   Jaroslaw Rafa
   r...@rafa.eu.org
--
"In a million years, when kids go to school, they're gonna know: once there
was a Hushpuppy, and she lived with her daddy in the Bathtub."

Reply via email to