Topic: [Fixed] Different timestamp in /var/log/*

Hi, all.

* 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[8227]: A90F95B6E0E: client=amadeus.keymarket.cl[]
May 15 08:57:23 amadeus postfix/cleanup[9032]: A90F95B6E0E: message-id=<46747b8b7d7d2a01d4b90b69a604b999.squirrel@www.keymarket.cl>

* 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.

* Solution:

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.
* Reference:


Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.