Koozali.org: home of the SME Server

SMTP send date shows 01/01/1970 1100am

Offline ldkeen

  • *
  • 405
  • +0/-0
SMTP send date shows 01/01/1970 1100am
« on: April 08, 2005, 08:35:37 AM »
I've setup zoneminder to send me an e-mail notification of any events but all the emails arrive with a date of 01/01/1970 1100am? My server uses ntp to set the time and I've checked and it's correct so maybe it's some qmail or smtp setting that needs to be corrected. The zoneminder setup asks for the name of my smtp server which I've tried localhost as well as mail. The notifications are coming through OK but just with the qrong date/time. Any help would be appreciated. BTW I don't think this is a zoneminder thing as I have other spam emails in my inbox with exactly the same date?
Many thanks.
Lloyd

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: SMTP send date shows 01/01/1970 1100am
« Reply #1 on: April 08, 2005, 04:25:28 PM »
Quote from: "ldkeen"
I've setup zoneminder to send me an e-mail notification of any events but all the emails arrive with a date of 01/01/1970 1100am?


Post some full mail headers so we know exactly what date you are referring to.

If it's a "Date: ..." header, then that's probably put there by whatever creates the mail, not by anything in SMTP.

Do you have anything non-standard in your SMTP setup?

Offline mdo

  • *
  • 355
  • +0/-0
SMTP send date shows 01/01/1970 1100am
« Reply #2 on: April 08, 2005, 09:23:05 PM »
Lloyd,

I see this happening with mails that have NO date header at all. Some mail clients at the receiving end seem to work around this, others don't.
I normally use Thunderbird so Thunderbird will show those mails with a date 1.1.1970 but Outlook Express will show the same mail (easy to do this with an imap account) with a "proper" date/time in it's inbox. It must make something up for that and use another date/time information from the mail headers?

Example for missing date headers (some info crossed out):

Received: (qmail 7380 invoked by alias); 14 Mar 2005 03:06:50 -0000
Delivered-To: alias-localdelivery-michael@tw.co.nz
Received: (qmail 7363 invoked from network); 14 Mar 2005 03:06:49 -0000
X-Virus-Scanned: by amavis-ng-0.1.6.4-03dc on tga1.tw.co.nz
Received: from xxx.co.nz (203-x-x-x.dsl.clear.net.nz [x.x.x.x])
  by tga1.tw.co.nz ([192.168.1.2])
  with SMTP via TCP; 14 Mar 2005 03:05:32 -0000
Received: (qmail 6996 invoked from network); 14 Mar 2005 01:41:14 -0000
Received: from pc-00028.x.co.nz (HELO PC00028) (192.168.1.28)
  by x.x.co.nz (192.168.1.2) with SMTP; 14 Mar 2005 01:41:14 -0000
Message-ID: <001b01c52836$dc5c51f0$1c01a8c0@PC00028>
From: "A X" <a@x.co.nz>
To: "\"Recipients, Newsletter\"" <info@x.co.nz>
Subject: Newsletter - February 2005
MIME-Version: 1.0
Content-Type: multipart/mixed;
   boundary="----=_NextPart_000_0018_01C528A3.D3211C70"
X-Mailer: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
X-BitDefender-SpamStamp: 1.1.3
 044000040111CAAAAAAAAAAAAAAAAAAAAABAAAAAAQ
X-BitDefender-Scanner: Clean, Agent: BitDefender Qmail 1.6.1 on
 tga1.tw.co.nz
X-BitDefender-Spam: No (0)

This is a multi-part message in MIME format.
...

Offline ldkeen

  • *
  • 405
  • +0/-0
SMTP send date shows 01/01/1970 1100am
« Reply #3 on: April 09, 2005, 01:27:43 AM »
I'm using Thunderbird as well. I did notice one of the forums suggested modifying /usr/bin/...stats.pl (can't remember the names
but I dont have any of these files on my server. Here are the headers:

Received: (qmail 22981 invoked by alias); 4 Apr 2005 09:22:00 -0000
Delivered-To: alias-localdelivery-lloyd@comnetel.com
Received: (qmail 22955 invoked from network); 4 Apr 2005 09:22:00 -0000
X-Virus-Scanned: by amavis-ng-0.1.6.4-03dc on guru.comnetel.com
Received: from localhost (HELO localhost.localdomain) (127.0.0.1)
  by guru.comnetel.com (127.0.0.1) with ESMTP; 04 Apr 2005 09:21:59 -0000
MIME-Version: 1.0
X-Mailer: MIME-tools 5.411 (Entity 5.404)
From: zm@comnetel.com
To: lloyd@comnetel.com
Subject: ZoneMinder: Alarm - ir_camera-12446 (5 - 1 132)
Content-Type: multipart/mixed; boundary="----------=_1112606518-22392-1"
Sender: "e-smith web server" <www@guru.comnetel.com>


This is a multi-part message in MIME format...

------------=_1112606518-22392-1
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
Regards Lloyd