> On Jan 29, 2020, at 4:32 AM, Jaroslaw Rafa <r...@rafa.eu.org> wrote:
> 
> 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".

No, that's fragile, not all processes using the table are necessarily
or consistently over time chrooted.  Making a symlink is more robust.

> Alternatively, you can create
> /var/spool/postfix/var/spool/postfix/postgresql directory, as Viktor wrote.

No, there's a symlink in there, that makes:

  /var/spool/postfix == /var/spool/postfix/var/spool/postfix
                     == /var/spool/postfix/var/spool/postfix/var/spool/postfix/
                     == 
/var/spool/postfix/var/spool/postfix/var/spool/postfix/var/spool/postfix
                     == ... up to PATHLEN_MAX ...

Therefore, the directory is in /var/spool/postfix as before, but now
it is also accessible under the same name from inside the jail.

-- 
        Viktor.

Reply via email to