fix(postfix-pgsql): disable chroot to fix pgsql lookup DNS resolution
This commit is contained in:
@@ -59,4 +59,10 @@ chmod 640 /etc/postfix/pgsql-relay-domains.cf /etc/postfix/pgsql-transport-maps.
|
||||
|
||||
postfix check
|
||||
|
||||
# Disable chroot for all master.cf services so child processes (smtpd,
|
||||
# trivial-rewrite, etc.) can resolve Docker-internal hostnames via the host's
|
||||
# /etc/resolv.conf. Without this, chrooted processes have no DNS and every
|
||||
# pgsql lookup returns "451 4.3.0 Temporary lookup failure".
|
||||
postconf -F '*/*/chroot = n'
|
||||
|
||||
exec /usr/sbin/postfix start-fg
|
||||
|
||||
Reference in New Issue
Block a user