«

»

Aug 30 2011

Postfix time log date and local time

Looking through the logs of one of my mail servers i noticed a time difference in the mail log.
If you look at the line numbers 6,7,11 and 13 you will see a 3 hour difference.

Aug 30 12:16:53 mail postfix/smtpd[4547]: connect from mail.evilbox.ro[89.90.91.92]
Aug 30 12:16:53 mail postfix/smtpd[4547]: E65872A161: client=mail.evilbox.ro[89.90.91.92]
Aug 30 12:16:53 mail postfix/cleanup[4616]: E65872A161: message-id=<[email protected]>
Aug 30 12:16:53 mail postfix/qmgr[29436]: E65872A161: from=<[email protected]>, size=2115, nrcpt=1 (queue active)
Aug 30 12:16:53 mail postfix/smtpd[4547]: disconnect from mail.evilbox.ro[89.90.91.92]
Aug 30 09:16:54 mail postfix/smtpd[4620]: connect from unknown[127.0.0.1]
Aug 30 09:16:54 mail postfix/smtpd[4620]: 5E82E2A246: client=unknown[127.0.0.1]
Aug 30 12:16:54 mail postfix/cleanup[4616]: 5E82E2A246: message-id=<[email protected]>
Aug 30 12:16:54 mail postfix/qmgr[29436]: 5E82E2A246: from=<[email protected]>, size=2674, nrcpt=1 (queue active)
Aug 30 12:16:54 mail amavis[3887]: (03887-12) Passed CLEAN, [89.90.91.92] [90.91.92.93] <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: uwEx77BzHPXP, Hits: 4.667, queued_as: 5E82E2A246, 488 ms
Aug 30 09:16:54 mail postfix/smtp[4753]: E65872A161: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.69, delays=0.2/0/0/0.49, dsn=2.6.0, status=sent (250 2.6.0 Ok, id=03887-12, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 5E82E2A246)
Aug 30 12:16:54 mail postfix/qmgr[29436]: E65872A161: removed
Aug 30 09:16:54 mail postfix/smtpd[4620]: disconnect from unknown[127.0.0.1]
Aug 30 12:16:54 mail postfix/virtual[4621]: 5E82E2A246: to=<[email protected]>, relay=virtual, delay=0.51, delays=0.05/0/0/0.46, dsn=2.0.0, status=sent (delivered to maildir)
Aug 30 12:16:54 mail postfix/qmgr[29436]: 5E82E2A246: removed

After searching the internet i found an answer : create directory /var/spool/postfix/etc/

# mkdir /var/spool/postfix/etc

Copy file /etc/localtime to /var/spool/postfix/etc/

# cp /etc/localtime /var/spool/postfix/etc/

Reload postfix :

# postfix reload

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*