Re: [gentoo-user] different times in postfix log
Jan Callewaert schreef: Hi, if I watch the logs of postfix, I have different times in it. Jun 18 19:17:43 [postfix/qmgr] 1E365EDCC3: from=bla, size=4398, nrcpt=1 (queue active) Jun 18 21:17:44 [postfix/local] 1E365EDCC3: to=[EMAIL PROTECTED], orig_to=[EMAIL PROTECTED], relay=local, delay=1, status=sent (delivered to command: procmail) Jun 18 19:17:44 [postfix/qmgr] 1E365EDCC3: removed Jun 18 21:17:48 [postfix/smtpd] disconnect from localhost[127.0.0.1] this is at 21:18. Date displays the correct hour. Any idea what is causing this? Only [postfix/qmgr] is showing the wrong time, the rest is correct. Regards, Jan Callewaert A perhaps more important question is: Why am I receiving a second copy of this message 10 days after I originally received it (and it's dated 10 days ago, too)? Am I the only one who received this (again) today (about 2 minutes ago, 14:26 CET)? If there is some kind of weirdness with my ISP (which would likely be the case if I'm the only one who got this), I certainly want to know about it-- and if Jan has some kind of weirdness on his (?) servers, I guess he (?) would want to know about that, too. Holly -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] different times in postfix log
Holly Bostick wrote: Jan Callewaert schreef: Hi, if I watch the logs of postfix, I have different times in it. Jun 18 19:17:43 [postfix/qmgr] 1E365EDCC3: from=bla, size=4398, nrcpt=1 (queue active) Jun 18 21:17:44 [postfix/local] 1E365EDCC3: to=[EMAIL PROTECTED], orig_to=[EMAIL PROTECTED], relay=local, delay=1, status=sent (delivered to command: procmail) Jun 18 19:17:44 [postfix/qmgr] 1E365EDCC3: removed Jun 18 21:17:48 [postfix/smtpd] disconnect from localhost[127.0.0.1] this is at 21:18. Date displays the correct hour. Any idea what is causing this? Only [postfix/qmgr] is showing the wrong time, the rest is correct. Regards, Jan Callewaert A perhaps more important question is: Why am I receiving a second copy of this message 10 days after I originally received it (and it's dated 10 days ago, too)? Am I the only one who received this (again) today (about 2 minutes ago, 14:26 CET)? If there is some kind of weirdness with my ISP (which would likely be the case if I'm the only one who got this), I certainly want to know about it-- and if Jan has some kind of weirdness on his (?) servers, I guess he (?) would want to know about that, too. I just recieved this message twice today too - again dated 10 days in the past. Is it possible the main got stuck in a queue somewhere and have just 'popped' out? :/ Holly -- Tim Igoe [EMAIL PROTECTED] http://tim.igoe.me.uk - Personal Site http://tv.igoe.me.uk - UK TV Guide Computers are like Air-con, open windows and they stop working! signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] different times in postfix log
Op dinsdag 28 juni 2005 14:52, schreef Tim Igoe: Holly Bostick wrote: Tim Igoe schreef: Holly Bostick wrote: Jan Callewaert schreef: Hi, if I watch the logs of postfix, I have different times in it. snip double-received message Regards, Jan Callewaert A perhaps more important question is: Why am I receiving a second copy of this message 10 days after I originally received it (and it's dated 10 days ago, too)? Am I the only one who received this (again) today (about 2 minutes ago, 14:26 CET)? If there is some kind of weirdness with my ISP (which would likely be the case if I'm the only one who got this), I certainly want to know about it-- and if Jan has some kind of weirdness on his (?) servers, I guess he (?) would want to know about that, too. I just recieved this message twice today too - again dated 10 days in the past. Is it possible the main got stuck in a queue somewhere and have just 'popped' out? :/ I would think that that's exactly what happened-- the question I was wondering about is: whose queue? The mail delivery queue of my ISP has now been eliminated (since you got it too), leaving Jan's send queue, or the list server's queue I think. The puzzling bit is to look at the times in the email header - they are all correct for if the message was delivered immediately but not. (even on my server which i know has the right time). Very odd. Holly I never had this problem. I relay my mail through postfix to the smtp server of my university, but since they like to play sometimes with it, it's possible that problem is there. The thing is, should I regard this as a problem of them, or is there something misconfigured on my system? Jan -- If it ain't broken, you just haven't looked hard enough. Fix it anyway. -- Tom Peters pgpazlfEr0bIt.pgp Description: PGP signature
Re: [gentoo-user] different times in postfix log
Hello, Jan! On Thu, 23 Jun 2005 14:15:48 +0200 you wrote: 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. postfix/qmgr runs in the chroot /var/spool/postfix, so you can't access anything outside the chroot. So a symlink doesn't work So use _hard_link instead of sym. -- WBR, Vladimir Rusinov aka B.; ICQ # 328664675 http://location.org.ru/ -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] different times in postfix log
Op woensdag 22 juni 2005 22:24, schreef Bryan Whitehead: Try restarting postfix. If you changed your timezone, clock, etc at any point without restarting postfix different parts will have different times. Might want to restart cron while your at it... ;) The problem stays even after restarting my computer (it goes to sleep at night :D) So I don't think that's the problem. I haven't recently changed my timezone or clock lately. I googled a bit, and apparently the qmgr daemon of postfix runs in a chroot. Maybe the chroot is not aware of the timezone? Regards, Jan On Sat, 18 Jun 2005, Jan Callewaert wrote: Hi, if I watch the logs of postfix, I have different times in it. Jun 18 19:17:43 [postfix/qmgr] 1E365EDCC3: from=bla, size=4398, nrcpt=1 (queue active) Jun 18 21:17:44 [postfix/local] 1E365EDCC3: to=[EMAIL PROTECTED], orig_to=[EMAIL PROTECTED], relay=local, delay=1, status=sent (delivered to command: procmail) Jun 18 19:17:44 [postfix/qmgr] 1E365EDCC3: removed Jun 18 21:17:48 [postfix/smtpd] disconnect from localhost[127.0.0.1] this is at 21:18. Date displays the correct hour. Any idea what is causing this? Only [postfix/qmgr] is showing the wrong time, the rest is correct. Regards, Jan Callewaert -- Bryan Whitehead Email:[EMAIL PROTECTED] -- If it ain't broken, you just haven't looked hard enough. Fix it anyway. -- Tom Peters pgpS0XJBqelOR.pgp Description: PGP signature
Re: [gentoo-user] different times in postfix log
Op donderdag 23 juni 2005 10:28, schreef Jan Callewaert: Op woensdag 22 juni 2005 22:24, schreef Bryan Whitehead: Try restarting postfix. If you changed your timezone, clock, etc at any point without restarting postfix different parts will have different times. Might want to restart cron while your at it... ;) The problem stays even after restarting my computer (it goes to sleep at night :D) So I don't think that's the problem. I haven't recently changed my timezone or clock lately. I googled a bit, and apparently the qmgr daemon of postfix runs in a chroot. Maybe the chroot is not aware of the timezone? Regards, Jan 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? Jan On Sat, 18 Jun 2005, Jan Callewaert wrote: Hi, if I watch the logs of postfix, I have different times in it. Jun 18 19:17:43 [postfix/qmgr] 1E365EDCC3: from=bla, size=4398, nrcpt=1 (queue active) Jun 18 21:17:44 [postfix/local] 1E365EDCC3: to=[EMAIL PROTECTED], orig_to=[EMAIL PROTECTED], relay=local, delay=1, status=sent (delivered to command: procmail) Jun 18 19:17:44 [postfix/qmgr] 1E365EDCC3: removed Jun 18 21:17:48 [postfix/smtpd] disconnect from localhost[127.0.0.1] this is at 21:18. Date displays the correct hour. Any idea what is causing this? Only [postfix/qmgr] is showing the wrong time, the rest is correct. Regards, Jan Callewaert -- Bryan Whitehead Email:[EMAIL PROTECTED] -- If it ain't broken, you just haven't looked hard enough. Fix it anyway. -- Tom Peters pgpCxYEgQiLuH.pgp Description: PGP signature
Re: [gentoo-user] different times in postfix log
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
Re: [gentoo-user] different times in postfix log
Op donderdag 23 juni 2005 12:14, schreef Holly Bostick: 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. postfix/qmgr runs in the chroot /var/spool/postfix, so you can't access anything outside the chroot. So a symlink doesn't work 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). It's stated here that the chroot environment for postfix is /var/spool/postfix and that there a directory etc has to be. /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. I don't think you're correct. I think that it suggests that 'a' directory etc is supposed to be there not 'the' directory /etc. Further in the link you provided, there's some information about it: Chroot Environment This environment is intended to limit system access to any malicious user who gains entry via an exploit of the mail system and contains only the very limited set of files necessary for the chrooted Postfix daemoms to run. The files that EnGarde includes in the chrooted environment are found in /var/spool/postfix/etc: [EMAIL PROTECTED] postfix]# ls -l /var/spool/postfix/etc total 24 -rw-r- 1 root root 604 Mar 5 13:43 hosts -rw-r--r-- 1 postfix postfix 1250 Feb 7 08:30 localtime -rw-r--r-- 1 postfix postfix 153 Mar 6 11:45 resolv.conf -rw-r--r-- 1 postfix postfix 11332 Feb 7 08:30 services [EMAIL PROTECTED] postfix]# [EMAIL PROTECTED] postfix]# ls -l /var/spool/postfix/lib/ total 72 -rwxr-xr-x 1 postfix postfix 67600 Feb 7 08:30 libnss_dns.so.2 [EMAIL PROTECTED] postfix]# The /var/spool/postfix/etc files are copies of the ones found in /etc as is the /var/spool/postfix/lib/libnss_dns.so.2 a copy of the libnss_dns library found in /lib. I find it strange that this is not done automatically by gentoo, nor that it is stated somewhere in the docs or on the wiki. And I suppose I would have to copy the other files to into /var/spool/postfix/etc 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). I have found this place in various documentations, so I'm sure this is not a gentoo thing. 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 Not at all, I was wondering the same thing. I find it strange that the links are not automatically copied -- If it ain't broken, you just haven't looked hard enough. Fix it anyway. -- Tom Peters pgpte1nNGuCBc.pgp Description: PGP signature
Re: [gentoo-user] different times in postfix log
Holly Bostick wrote: 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. LOL! I would certainly want people to confront me if they notice me babbling ;-). Zac -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] different times in postfix log
Try restarting postfix. If you changed your timezone, clock, etc at any point without restarting postfix different parts will have different times. Might want to restart cron while your at it... ;) On Sat, 18 Jun 2005, Jan Callewaert wrote: Hi, if I watch the logs of postfix, I have different times in it. Jun 18 19:17:43 [postfix/qmgr] 1E365EDCC3: from=bla, size=4398, nrcpt=1 (queue active) Jun 18 21:17:44 [postfix/local] 1E365EDCC3: to=[EMAIL PROTECTED], orig_to=[EMAIL PROTECTED], relay=local, delay=1, status=sent (delivered to command: procmail) Jun 18 19:17:44 [postfix/qmgr] 1E365EDCC3: removed Jun 18 21:17:48 [postfix/smtpd] disconnect from localhost[127.0.0.1] this is at 21:18. Date displays the correct hour. Any idea what is causing this? Only [postfix/qmgr] is showing the wrong time, the rest is correct. Regards, Jan Callewaert -- Bryan Whitehead Email:[EMAIL PROTECTED] -- gentoo-user@gentoo.org mailing list
[gentoo-user] different times in postfix log
Hi, if I watch the logs of postfix, I have different times in it. Jun 18 19:17:43 [postfix/qmgr] 1E365EDCC3: from=bla, size=4398, nrcpt=1 (queue active) Jun 18 21:17:44 [postfix/local] 1E365EDCC3: to=[EMAIL PROTECTED], orig_to=[EMAIL PROTECTED], relay=local, delay=1, status=sent (delivered to command: procmail) Jun 18 19:17:44 [postfix/qmgr] 1E365EDCC3: removed Jun 18 21:17:48 [postfix/smtpd] disconnect from localhost[127.0.0.1] this is at 21:18. Date displays the correct hour. Any idea what is causing this? Only [postfix/qmgr] is showing the wrong time, the rest is correct. Regards, Jan Callewaert -- gentoo-user@gentoo.org mailing list