Find the answer to your Linux question:
Results 1 to 1 of 1
It turns out the problem was on my client machine. I did originally have a problem with the locale info on the mail server but I fixed it when trouble ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2009
    Posts
    1

    [SOLVED] Bizarre time probems with postfix.


    It turns out the problem was on my client machine. I did originally have a problem with the locale info on the mail server but I fixed it when trouble shooting the problem. My client machine was set to the wrong timezone so even after I fixed it it appeared to be wrong and I assumed it was still postfix mucking things up.


    Code:
    [i] Hi, I'm having some weird problems with my postfix configuration. I'm running debian/lenny with postfix/dovecot mail server using mysql db for virtual mapping.
    
    The time on my system is correctly set, as are /etc/localtime. I have also configured tzselect to enure the TZ variables are correct.
    
    My mail logs all report information with the correct timestamp, I mention this as that is usually a sign of another problem already discussed on this forum.
    
    Nearly all my mail headers appear to have correct information on them, however, when i send mail it shows up in recipient email boxes with a date 21 hours ahead of the time it was sent.
    
    I live in a time zone thats GMT+1300 yet the date header reports the mail as sent at GMT-0800 but where this comes from is a total mystery. Here is an example header from an email I sent at 9:35:16am 27 Feb NZDT (8:35pm 26 feb UTC)
    
    
    
    Code:
    Return-Path: <chris@xxxx.co.nz>
    Delivered-To: chris@xxxx.co.nz
    Received: from localhost (localhost [127.0.0.1])
            by Isengard.xxxx.co.nz (Postfix) with ESMTP id AE743B00D8
            for <chris@xxxx.co.nz>; Thu, 26 Feb 2009 20:35:16 +0000 (UTC)
    X-Virus-Scanned: Debian amavisd-new at localhost
    X-Spam-Flag: NO
    X-Spam-Score: 3.308
    X-Spam-Level: ***
    X-Spam-Status: No, score=3.308 required=6.31 tests=[ALL_TRUSTED=-1.44,
            AWL=1.450, DATE_IN_FUTURE_12_24=3.299]
    Received: from Isengard.xxxx.co.nz ([127.0.0.1])
            by localhost (Isengard.xxxx.co.nz [127.0.0.1]) (amavisd-new, port 10024)
            with ESMTP id V4ad-qs6lSbE; Fri, 27 Feb 2009 09:35:16 +1300 (NZDT)
    Received: from [192.168.0.100] (unknown [192.168.0.100])
            by Isengard.xxxx.co.nz (Postfix) with ESMTPSA id F2634B00D5;
            Thu, 26 Feb 2009 20:35:15 +0000 (UTC)
    Message-ID: <49A82465.2000905@xxxx.co.nz>
    Date: Fri, 27 Feb 2009 09:35:33 -0800
    From: Chris xxxx <chris@xxxx.co.nz>
    User-Agent: Thunderbird 2.0.0.19 (Windows/20081209)
    MIME-Version: 1.0
    To: chris@xxxx.co.nz, xxxx@xxxx.ac.nz
    Subject: Date Test
    Content-Type: text/plain; charset=ISO-8859-1; format=flowed
    Content-Transfer-Encoding: 7bit
    The relevent pieces are: Received: from localhost (localhost [127.0.0.1]) by Isengard.xxxx.co.nz (Postfix) with ESMTP id AE743B00D8 for <chris@xxxx.co.nz>; Thu, 26 Feb 2009 20:35:16 +0000 (UTC) - This appears to be correct, though why its using GMT when both date and hwclock report time in NZDT is a mystery X-Spam-Status: No, score=3.308 required=6.31 tests=[ALL_TRUSTED=-1.44, AWL=1.450, DATE_IN_FUTURE_12_24=3.299] - This is what happens because of the problem - my friends report my emails going into their junk box. Received: from Isengard.xxxx.co.nz ([127.0.0.1]) by localhost (Isengard.xxxx.co.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id V4ad-qs6lSbE; Fri, 27 Feb 2009 09:35:16 +1300 (NZDT) - this seems to be the correct time now in the correct timezone Received: from [192.168.0.100] (unknown [192.168.0.100]) by Isengard.xxxx.co.nz (Postfix) with ESMTPSA id F2634B00D5; Thu, 26 Feb 2009 20:35:15 +0000 (UTC) - somehow we have ended back at UTC but the time is still correct The header: Date: Fri, 27 Feb 2009 09:35:33 -0800 Is the obvious problem - where the hell is it coming from? I've never had any timezone on my system at -0800. I sent a copy of this message to my hotmail and it is reported as follows: Date Test Chris Noldus [chris@xxxx.co.nz] Sent: 28 February 2009 06:35 The date is 21 hours ahead. What sets the date header and why is it so wrong? Any ideas? [i]
    Last edited by GlitchNZ; 02-26-2009 at 08:05 PM. Reason: Problem resolved

Posting Permissions

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