Find the answer to your Linux question:
Results 1 to 5 of 5
Hi all I have the following problem: in the line with postfix/smtp the time is with 2 hours back and i don't now why. Please help! Thanks the log: Feb ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2010
    Posts
    2

    postfix log time problem


    Hi all

    I have the following problem: in the line with postfix/smtp the time is with 2 hours back and i don't now why. Please help! Thanks

    the log:

    Feb 2 11:19:03 email postfix/smtpd[18318]: connect from xx.xx.xx.xx
    Feb 2 11:19:03 email postfix/smtpd[18318]: 5AF5C117D2D: client=xx.xx.xx.xx, sasl_method=LOGIN, sasl_username=aaaa at aaaaa.aa
    Feb 2 11:19:03 email postfix/cleanup[18323]: 5AF5C117D2D: message-id=<20100202091903.5AF5C117D2D at aaaaaaa.aa>
    Feb 2 11:19:03 email postfix/qmgr[13940]: 5AF5C117D2D: from=<aaaa at aaaaa.aa>, size=63783, nrcpt=1 (queue active)
    Feb 2 11:19:04 email postfix/smtpd[18500]: 512B1117D33: client=localhost.localdomain[127.0.0.1]
    Feb 2 11:19:04 email postfix/cleanup[18323]: 512B1117D33: message-id=<20100202091903.5AF5C117D2D at aaaaa.aa>
    Feb 2 11:19:04 email postfix/qmgr[13940]: 512B1117D33: from=<aaaa at aaaaa.aa>, size=64230, nrcpt=1 (queue active)
    Feb 2 11:19:04 email postfix/smtpd[18500]: disconnect from localhost.localdomain[127.0.0.1]
    Feb 2 11:19:04 email amavis[17853]: (17853-06) Passed CLEAN, MYNETS LOCAL [xx.xx.xx.xx] [xx.xx.xx.xx] <aaaa at aaaaa.aa> -> <bbbbb at bbbbbbbb.bb>, Message-ID: <20100202091903.5AF5C117D2D at aaaaaaaa.aa>, mail_id: e9SAnX6nBHtS, Hits: 2.095, size: 63782, queued_as: 512B1117D33, 907 ms
    Feb 2 09:19:04 email postfix/smtp[18443]: 5AF5C117D2D: to=<bbbbb at bbbbbbbb.bb>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.2, delays=0.31/0/0/0.91, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=17853-06, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 512B1117D33)
    Feb 2 11:19:04 email postfix/qmgr[13940]: 5AF5C117D2D: removed
    Feb 2 11:19:06 email postfix/smtpd[18318]: disconnect from xx.xx.xx.xx
    Feb 2 11:19:10 email postfix/smtp[18328]: 512B1117D33: to=<bbbbbb at bbbbbbbbbbb.bb>, relay=rrrrr.rrrr.rrrr:25, delay=5.9, delays=0.11/0/5.1/0.71, dsn=2.0.0, status=sent (250 2.0.0 o129J4de029975 Message accepted for delivery)
    Feb 2 11:19:10 email postfix/qmgr[13940]: 512B1117D33: removed

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,445
    your system time is either 2 hours back or you are in the wrong timezone.

    Please compare the output of
    Code:
    date
    to your real time
    You must always face the curtain with a bow.

  3. #3
    Linux Enthusiast Mudgen's Avatar
    Join Date
    Feb 2007
    Location
    Virginia
    Posts
    664
    Postfix wants its time zone info in /var/spool/postfix/etc/localtime. It should be a copy of /etc/localtime, or what that symlinks to. If /etc/localtime is a symlink, copy the actual file there, not the symlink. Postfix won't follow the symlink back out.

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Feb 2010
    Posts
    2
    Thanks for your reply.

    UPDATE: Solved. Created etc folder in /var/spool/postfix and copy localtim from /etc ... postfix restart and everything is ok.



    My real time is ok. If you see only the line with postfix/smtp has the wrong time.

    I checked /var/spool/postfix/etc/localtime, but ...etc folder not exist in /var/spool/postfix.

    Any idea?

    Thanks

  6. #5
    Just Joined!
    Join Date
    Oct 2008
    Posts
    2

    Smile

    Have you check the time zone setting of your Linux Box ?

    You're running within a chroot. Make sure that whatever files your system uses to determine the TIMEZONE are below your chroot.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •