Jan Callewaert schreef: > I'm afraid that I replied too fast. I searched google just a little more. > qmgr > runs inside a chroot in /var/spool/postfix. So I copied my /etc/localtime > into the chroot (I had to create the /etc directory). I restarted postfix and > the log time was correct. However, is this the way to do it? Since it's a > chroot, I can't make a symlink, so whenever I change my timezone, I have to > change it in two different places. I'm sure I'm going to forget this. Is > there no other way? >
Hi Jan, It's quite possible that I'm talking out of my butt, since I don't use postfix, but this really confused me: > Since it's a > chroot, I can't make a symlink This just doesn't seem right, if postfix/qmgr requires some kind of time marker. I get it that /etc is outside the chroot, but that seems to suggest that either the chroot parameters are too narrow (and /etc should be inside it, in which case you could create the symlink or wouldn't need to), and/or that the logger is misconfigured, in that it ought to be able to connect to /etc/localtime, but apparently is not. Since I don't know anything about this, I went Googling, and found http://www.linuxsecurity.com/docs/HOWTO/Postfix-EnGarde-HOWTO.html , which says: General Information Postfix configuration is done with the files in /etc/postfix, /usr/lib/libexec/postfix contains the postfix daemons, and /var/spool/postfix contains the mail queues and various mail staging directories and the default chroot directory "etc" (if chrooting is configured). /etc/postfix will be the most important directory as it controls postfix's behaviour. This directory holds the two configuration files and the aliases, virtual, transport, access, and other databases in maps. Interestingly, this suggests that not only is /etc/ supposed to be in the chroot, but that /etc is supposed to be the root of the chroot. So if I was you, I'd be interested in knowing why it is not, in your case. Maybe it's a Gentoo thing, but in that case, surely there's a Gentoo document detailing how to set up Postfix in the Gentoo System Administration docs, or a config file somewhere in /etc/(conf.d)(/postfix) that might explain why the chroot is in such a weird place (it sounds weird to me, and I don't even use Postfix). Anyway, hope this is in some way useful, and not a load of babbling idiocy. If it is (babbling idiocy), sorry to waste your time. Holly -- gentoo-user@gentoo.org mailing list