postfix chroot and updated shared libraries

keeka

Renowned Member
Dec 8, 2019
235
34
68
I notice postfix check complains about differences between system files and their counterparts in postfix chroot:

warning: /var/spool/postfix/etc/localtime and /etc/localtime differ
warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_systemd.so.2 and /lib/x86_64-linux-gnu/libnss_systemd.so.2 differ

The first warning seems to be because my system TZ was changed post-install and the postfix one is a copy of UTC.

With the second warning, presumably because a system shared library has been updated, should we copy the new lib to the postfix chroot?
 
Many thanks for the clarification. I'd assumed postfix ran chroot.
The comment in master.cf is misleading as it implies the postfix default is to run chrooted.
Code:
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
 
Last edited:
Many thanks for the clarification. I'd assumed postfix ran chroot.
The comment in master.cf is misleading as it implies the default is to still to run chrooted.
Yes - this is something we'll change soon (which is the reason why the bugzilla entry is still not resolved :)
 
  • Like
Reactions: keeka