Operating System - HP-UX
1827414 Members
5034 Online
109965 Solutions
New Discussion

where does sendmail gets its time?

 
SOLVED
Go to solution
someone_4
Honored Contributor

where does sendmail gets its time?

Hey everyone happy monday =)
I was wondering where does sendmail get its time? If I run the date command. I get back 9:47. But if I send an email
#sendmail -v user@domain
it shows to come in at 9:31.
Is this time stamp on the local host or on the server of the sender i am sending to?
Thanks
Richard
5 REPLIES 5
S.K. Chan
Honored Contributor

Re: where does sendmail gets its time?

If I'm not mistaken the timezone is defined in /etc/mail/sendmail.cf. The var is
TimeZoneSpec
Mark Greene_1
Honored Contributor

Re: where does sendmail gets its time?

if you are sending to a relay server, the time is coming from that system, not the system where the mail originated.

mark
the future will be a lot like now, only later
harry d brown jr
Honored Contributor
Solution

Re: where does sendmail gets its time?

Here's a test I ran. PBCTST is 5 minutes behind VPART1:


[root]pbctst: mail
From root@vpart1.paychex.com Mon Feb 11 10:41:54 EST 2002
Received: from vpart1.paychex.com (root@vpart1.paychex.com [141.123.226.41])
by pbctst.paychex.com (8.9.3/8.9.3) with ESMTP id KAA27566
for ; Mon, 11 Feb 2002 10:41:54 -0500 (EST)
From: root@vpart1.paychex.com
Received: (from root@localhost)
by vpart1.paychex.com (8.9.3/8.9.3) id KAA01093
for root@pbctst; Mon, 11 Feb 2002 10:47:10 -0500 (EST)
Date: Mon, 11 Feb 2002 10:47:10 -0500 (EST)
Message-Id: <200202111547.KAA01093@vpart1.paychex.com>

hello root on pbctst

? q
[root]pbctst: date
Mon Feb 11 10:42:13 EST 2002
[root]pbctst:

The sender has a date/time, the receiver stamps it with his/her date/time.

live free or die
harry
Live Free or Die
Sanjay_6
Honored Contributor

Re: where does sendmail gets its time?

Hi Richard,

Have you checked the time on your mail server. The time of the mail being sent is normally taken from the system from which it is send. If the mail from the system is set to 10:43 any mail sent at that time from that server will have the time 10:43.

Hope this helps.

Regds


someone_4
Honored Contributor

Re: where does sendmail gets its time?

Thanks Harry that is what i was thinking. Just needed someone to confirm that.

Richard