<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — [Fixed] Different timestamp in /var/log/*]]></title>
		<link>https://forum.iredmail.org/topic31-fixed-different-timestamp-in-varlog.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic31.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in [Fixed] Different timestamp in /var/log/*.]]></description>
		<lastBuildDate>Mon, 18 May 2009 03:16:49 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[[Fixed] Different timestamp in /var/log/*]]></title>
			<link>https://forum.iredmail.org/post111.html#p111</link>
			<description><![CDATA[<p>Hi, all.</p><p>* <strong>Severity</strong>: LOW</p><p>* <strong>Affected iRedMail/iRedOS versions</strong>: ALL</p><p>* <strong>Description of problem</strong>:</p><p>Postfix logs the same message twice in /var/log/maillog, one with a correct timestamp, one with a wrong timestamp (utc). e.g.<br /></p><div class="codebox"><pre><code>May 15 12:57:23 amadeus postfix/smtpd[8227]: A90F95B6E0E: client=amadeus.keymarket.cl[127.0.0.1]
May 15 08:57:23 amadeus postfix/cleanup[9032]: A90F95B6E0E: message-id=&lt;46747b8b7d7d2a01d4b90b69a604b999.squirrel@www.keymarket.cl&gt;</code></pre></div><p>* <strong>Root case</strong>:</p><p>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&#039;t read /etc/localtime at all.</p><p>* <strong>Solution</strong>:</p><p>Copy /etc/localtime to /var/spool/postfix/etc/ and restart postfix:<br /></p><div class="codebox"><pre><code># cp -f /etc/localtime /var/spool/postfix/etc/
# /etc/init.d/postfix restart</code></pre></div><p>Don&#039;t use UTC in /etc/sysconfig/clock:<br /></p><div class="codebox"><pre><code>UTC=false</code></pre></div><p>This issue should be fixed.<br />* <strong>Reference</strong>:</p><ul><li><p>Red Hat Bugzilla – Bug 193184: Confusing timestamp in /var/log/secure (UTC time instead of localtime): <a href="https://bugzilla.redhat.com/show_bug.cgi?id=193184">https://bugzilla.redhat.com/show_bug.cgi?id=193184</a></p></li></ul>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Mon, 18 May 2009 03:16:49 +0000</pubDate>
			<guid>https://forum.iredmail.org/post111.html#p111</guid>
		</item>
	</channel>
</rss>
