Forum archive
lamp appliance, postfix, timestamps in log
Hi All,
I installed the lamp appliance. I notice that the time stamp in the postfix logs are off by 4 hours. Advice from other forums was to copy /etc/localtime to /var/spool/postfix/etc
I've done so, but still not working. I find these "localtime" files on the system, and
they are identical:
e4ca381035a34b7a852184cc0dd89baa /etc/localtime
e4ca381035a34b7a852184cc0dd89baa /var/spool/postfix/etc/localtime
e4ca381035a34b7a852184cc0dd89baa /var/spool/postfix/usr/lib/zoneinfo/localtime
e4ca381035a34b7a852184cc0dd89baa /usr/share/zoneinfo/localtime
The date command returns the correct time for my timezone:
Thu May 17 12:35:15 EDT 2012
But the time stamps are wrong in
/var/log/mail.info
and
/var/log/mail.err
Best regards,
Dan
P.S. Is there an email client that installs by default with the Lamp appliance?
I tried using "mail" from a shell prompt, for testing, but the "mail" command is not found.
Thank you again for helping.
It looks like the postfix startup in /etc/init.d goes out of its way to turn off the TZ variable. I edited the main.cf file, but then had trouble starting postfix. Since I'm afraid of doing more harm than good, I'll let this sleeping dog lie. The only problem is the date stamp in the log, and I'm the only one who has noticed.
Thanks again!
Dan
TurnKey Linux wrote: