On Wed, Dec 03, 2008 at 09:59:17PM -0500, brian dodds wrote: > On Wed, Dec 3, 2008 at 8:25 PM, Wietse Venema <[EMAIL PROTECTED]> wrote: > > > > Some third-party library is calling stuff before Postfix chroots. > > > > Postfix does not support chroot environments that are out of sync > > with the host environment; I am not going to jump hoops to make > > that possible. > > > > If you want Postfix to use a different resolver, use main.cf's > > export_environment parameter to override resolver settings if > > possible, run the whole lot in a FreeBSD jail, in a Solaris zone, > > or in a Linux virtual server partition. > > I wasn't looking for hoop jumping, just further insight, which you've > provided. I guess I'd interpreted all of the chroot documentation > slightly incorrectly - wherever it says to include necessary files, at > the very least /etc/hosts and /etc/resolv.conf, I insinuated that they > would definitely be used. In actuality it's because they might be > used, and in some cases in a version of *nix that behaved differently > (probably BSD) they were necessary - in my current linux incarnation, > not so much. > > Thanks for the heads up on the export_environment idea, I'll pursue > that before virtualizing the entire application.
What exactly are you trying to achieve? If you want to modify delivery for just a couple of domains, you can use a transport(5) table. http://www.postfix.org/transport.5.html Geert