How SMTP server asisgns timestamps to e-mails being sent to an additional SMTP server

Hey all,

First post here.

We are using an SMTP server to queue up e-mail blasts, we then blast them to an outside vendor's SMTP server who then sends them to the recipients. The weird thing we are seeing is the time stamps on the messages seem all out of whack. I want to know how SMTP service assigns timestamps to these e-mails. Our code should just be adding the time it is created as the "Sent" time, but by the time they get to the recipient - the time is off by anywhere from 30 minutes to an hour.

For example, I received an e-mail today and in Outlook it said, recieved @ 3:29AM, but in the header it says 4:06AM.

Any ideas?

Thanks! :)
Who is Participating?
jar3817Connect With a Mentor Commented:
Where did you get this dll file? Do you have the source? I'm wondering if it doesn't pay attention to daylight savings time.
Is the outside vendor in the same timezone as you? Look in the headers of the email, the Received lines will show how the message started from your server, went to them and I'm sure they send it back to you. Each header will have a date and time on it, so you should be able to see the local times the message was actually sent. It's also possible the outside vendor just has the wrong time set on their mail server.
SRGTAMPAAuthor Commented:

they're not sending the mail back to us, we're simply using them as a white list to send out e-mail blasts to clients. i was thinking that they may be in a diff timezone and thats why the messages are being stamped weird. When I look at the header I do not see any times that are off; I've checked all of our system times, from every machine the messages would be going through. They are all correct.

I am starting to think it is the Ossmtp.dll we are using. It's an old third party VB controller that allows SMTP transfer.
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Could be. If they're not sending any of the messages back to you, how are you able to see the headers?
SRGTAMPAAuthor Commented:

i've noticed that any e-mails generated by that vb controller are an hour off; i can paste some headers for you. maybe you may know something i dont! :)

the code snippet is the header from the e-mail generated by the ossmtp dll, at the very end you'll see the timestamp that has -0500 rather than -0400 like it should have. i think this explains the difference in the time. any thoughts?

thanks once again for all your assistance.

Microsoft Mail Internet Headers Version 2.0
Received: from ([]) by with Microsoft SMTPSVC(6.0.3790.3959);
	 Thu, 12 Jun 2008 03:06:16 -0400
Received: from ( [])
	by (Postfix) with ESMTP id 94B6D35C0A9
	for <>; Thu, 12 Jun 2008 03:07:00 -0400 (EDT)
Received: by (Postfix, from userid 1001)
	id 2C00E4F42FC; Thu, 12 Jun 2008 03:07:01 -0400 (EDT)
Received: from ( [])
	by (Postfix) with ESMTP id D20F94F4306
	for <>; Thu, 12 Jun 2008 03:07:00 -0400 (EDT)
Received: by (MailWise LLC - Intelligent Email Protection, from userid 1000)
	id 4FA6512784E; Thu, 12 Jun 2008 03:07:00 -0400 (EDT)
Received: from ( [])
	by (MailWise LLC - Intelligent Email Protection) with ESMTP id 5D33F127845
	for <>; Thu, 12 Jun 2008 03:06:59 -0400 (EDT)
Received: from ([]) by with Microsoft SMTPSVC(6.0.3790.3959);
	 Thu, 12 Jun 2008 03:06:14 -0400
From: Data File Transfer Process <>
To: <>
Subject: 2758: *** 6/12/2008
Date: 12 Jun 2008 03:06:14 -0500
MIME-Version: 1.0
X-Mailer: OstroSoft SMTP Component (5.0.4)
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <>
X-OriginalArrivalTime: 12 Jun 2008 07:06:14.0654 (UTC) FILETIME=[CD7A81E0:01C8CC5A]
X-MailWise-About: Scanned by MailWise Filter (
X-MailWise-Version: 3.1.0
X-MailWise-Original-Size: 1,094 bytes
X-MailWise-Virus: NO Viruses were found in this e-mail
X-MailWise-Decision: PASSED
X-MailWise-Original-Size: 1,854 bytes
X-Mailwise-Rule: G117784-112

Open in new window

SRGTAMPAAuthor Commented:

it's ancient, and the version we are using is ANCIENT as well.

i looked on the site and the readme and couldnt find any info about it not recognizing daylight savings time.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.