Topic: [Fixed] Different timestamp in /var/log/*
* Severity: LOW
* Affected iRedMail/iRedOS versions: ALL
* Description of problem:
Postfix logs the same message twice in /var/log/maillog, one with a correct timestamp, one with a wrong timestamp (utc). e.g.
May 15 12:57:23 amadeus postfix/smtpd: A90F95B6E0E: client=amadeus.keymarket.cl[127.0.0.1] May 15 08:57:23 amadeus postfix/cleanup: A90F95B6E0E: message-id=<email@example.com>
* Root case:
Postfix need to read /etc/localtime to set timezone and log the correct timestamp, but it runs under chrooted in /var/spool/postfix/, it can't read /etc/localtime at all.
Copy /etc/localtime to /var/spool/postfix/etc/ and restart postfix:
# cp -f /etc/localtime /var/spool/postfix/etc/ # /etc/init.d/postfix restart
Don't use UTC in /etc/sysconfig/clock:
This issue should be fixed.
Red Hat Bugzilla – Bug 193184: Confusing timestamp in /var/log/secure (UTC time instead of localtime): https://bugzilla.redhat.com/show_bug.cgi?id=193184
----Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Stable release is out.