• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 453
  • Last Modified:

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! :)
  • 3
  • 3
1 Solution
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.
Could be. If they're not sending any of the messages back to you, how are you able to see the headers?
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

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 tx06.mailwise.com ([]) by exchange.sterlingresearchgroup.com with Microsoft SMTPSVC(6.0.3790.3959);
	 Thu, 12 Jun 2008 03:06:16 -0400
Received: from v3e18.mailwise.com (v3e18.mailwise.com [])
	by tx06.mailwise.com (Postfix) with ESMTP id 94B6D35C0A9
	for <IVRDistributionList@sterlingresearchgroup.com>; Thu, 12 Jun 2008 03:07:00 -0400 (EDT)
Received: by v3e18.mailwise.com (Postfix, from userid 1001)
	id 2C00E4F42FC; Thu, 12 Jun 2008 03:07:01 -0400 (EDT)
Received: from trk05.mailwise.com (trk05.mailwise.com [])
	by v3e18.mailwise.com (Postfix) with ESMTP id D20F94F4306
	for <IVRDistributionList@sterlingresearchgroup.com>; Thu, 12 Jun 2008 03:07:00 -0400 (EDT)
Received: by trk05.mailwise.com (MailWise LLC - Intelligent Email Protection, from userid 1000)
	id 4FA6512784E; Thu, 12 Jun 2008 03:07:00 -0400 (EDT)
Received: from outboundserver.sterlingresearchgroup.com (outboundserver.sterlingresearchgroup.com [])
	by trk05.mailwise.com (MailWise LLC - Intelligent Email Protection) with ESMTP id 5D33F127845
	for <IVRDistributionList@sterlingresearchgroup.com>; Thu, 12 Jun 2008 03:06:59 -0400 (EDT)
Received: from emailprod.srgcore.int ([]) by outboundserver.sterlingresearchgroup.com with Microsoft SMTPSVC(6.0.3790.3959);
	 Thu, 12 Jun 2008 03:06:14 -0400
From: Data File Transfer Process <outbound@sterlingresearchgroup.com>
To: <IVRDistributionList@sterlingresearchgroup.com>
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: <OUTBOUNDSERVERB526t0000e213@outboundserver.sterlingresearchgroup.com>
X-OriginalArrivalTime: 12 Jun 2008 07:06:14.0654 (UTC) FILETIME=[CD7A81E0:01C8CC5A]
X-MailWise-About: Scanned by MailWise Filter (http://www.mailwise.com)
X-MailWise-Version: 3.1.0
X-MailWise-Envelope-From: outbound@sterlingresearchgroup.com
X-MailWise-Envelope-To: IVRDistributionList@sterlingresearchgroup.com
X-MailWise-Original-Size: 1,094 bytes
X-MailWise-MsgID: 25212_1213254419.in
X-MailWise-Virus: NO Viruses were found in this e-mail
X-MailWise-Decision: PASSED
X-MailWise-Original-Size: 1,854 bytes
X-MailWise-MsgID: 23520_1213254420.in
X-Mailwise-Rule: G117784-112
Return-Path: outbound@sterlingresearchgroup.com

Open in new window

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.
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.

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now