On 07/05/2013 18:47, Tanstaafl wrote:
> On 2013-05-07 11:43 AM, J. Roeleveld <[email protected]> wrote:
>> Tanstaafl<[email protected]>  wrote:
>>> Ok, I've googled and can't figure this out...
>>>
>>> /etc/timezone is set to the correct timezone (EST5EDT)
>>>
>>> Date command says the server time is correct.
>>>
>>> Cron jobs run at the correct times.
>>>
>>> EMails generated by cron have a time one hour in the past.
>>>
>>> Looking at the email header shows the correct date/time stamps, but
>>> since Thunderbird by default uses the date/time header set by the
>>> client, it shows up as arriving an hour earlier than it actually did.
>>>
>>> Anyone?
> 
>> Check the time in the headers of the email from the cronjob. It might
>> be that this is caused by a different time (zone) of the mailserver
>> or machine you are checking mail with.
> 
> Nope. It is our mail server, here in our office...
> 
> Also, I have rkhunter running on the same machine (job is in
> /etc/cron.daily, instead of the root crontab), which generates its own
> emails, and those have the correct time on them (header time matches
> what is in the log).
> 


Are you saying that scripts which do mail correctly (i.e. by themselves)
work fine?

But when you rely on crond to send the mail by grabbing STDOUT, then the
time is wrong, and that this is consistent?

That would point to something with crond and would need a few tests such
as what happens with other crons from other users, what happens when you
downgrade cron and then test?

I'm assuming you use vixie-cron. Correct?



-- 
Alan McKinnon
[email protected]


Reply via email to