On Sun, 2011-02-20 at 21:25 +0100, Loïc Minier wrote: > [...] > > Perhaps a sensible approach would be for the init script to: > * support all config options which are set by default or via debconf as > it does not -- including etc/hosts, resolv.conf etc. > * also always copy the whole of etc/postfix over into the chroot > * provide a mean to copy additional files
I second the request for a means of copying additional files into the chroot. The Red Hat package runs /etc/postfix/chroot-update for this purpose. Perhaps /usr/lib/postfix/configure-instance.sh could call /etc/postfix/chroot-update, if it exists, as a hook for admins to make local chroot changes? Thanks for considering, Kevin P.S. My current use case is that pgsql tables appear to require (a subset of) /etc/passwd to be present in the chroot when using peer auth via UNIX domain socket. When not present, it causes table lookups to fail with errors such as the following: postfix/trivial-rewrite[19003]: warning: connect to pgsql server unix:/var/run/postgresql: could not look up local user ID 111: No such file or directory? This use seems niche enough that it wasn't worth supporting out-of-the-box. If you disagree, I can file a separate bug for it. -- Cheers, | ke...@kevinlocke.name | XMPP: ke...@kevinlocke.name Kevin | https://kevinlocke.name | IRC: kevinoid on freenode