|
Home > Archive > Red Hat Topics > November 2004 > Invalid time in Sendmail /var/log/maillog
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Invalid time in Sendmail /var/log/maillog
|
|
| Kresimir Petric \(WeOnlyDo! Software\) 2004-11-12, 8:45 pm |
| Hi. I'm new to fedora (I see this is very similar to redhat, so I'm looking
for help here). I used to work on Debian so now I'm unlucky in making things
work on fedora..
Anyway. I have a problem with sendmail. In /var/log/maillog dates (actually,
times) are invalid all the time, showing 6 hours late than current time. I
check timezone, checked date and date --utc and dates are correct. From what
I know, hardware clock is set to UTC and my date is set to localtime and
whenever I execute any command that deals with dates - it gives me correct
time.
But sendmail just keeps showing bad time. Does anyone have any hint what I
should try to determine cause of this?
Thanks,
Kreso
| |
|
| On Sat, 13 Nov 2004 03:35:39 +0100, Kresimir Petric (WeOnlyDo! Software)
thoughtfully wrote:
> Hi. I'm new to fedora (I see this is very similar to redhat, so I'm
> looking for help here). I used to work on Debian so now I'm unlucky in
> making things work on fedora..
>
> Anyway. I have a problem with sendmail. In /var/log/maillog dates
> (actually, times) are invalid all the time, showing 6 hours late than
> current time. I check timezone, checked date and date --utc and dates are
> correct. From what I know, hardware clock is set to UTC and my date is set
> to localtime and whenever I execute any command that deals with dates - it
> gives me correct time.
>
> But sendmail just keeps showing bad time. Does anyone have any hint what I
> should try to determine cause of this?
>
> Thanks,
> Kreso
Sounds like sendmail is using the UTC time. What's the sendmail
configuration for setting time to local time instead of hardware time?
| |
| Reynolds McClatchey 2004-11-16, 2:13 pm |
|
noi wrote:
> On Sat, 13 Nov 2004 03:35:39 +0100, Kresimir Petric (WeOnlyDo! Software)
> thoughtfully wrote:
>
>
>
>
>
> Sounds like sendmail is using the UTC time. What's the sendmail
> configuration for setting time to local time instead of hardware time?
I do not have the answer.
On my system I note the /var/log/messages times for named
are UTC. These times are chronologically in order with the EST times
so it is easy to translate the time.
I guess this is a user environment setting inherited by syslogd,
not a sendmail setting? TZ?
| |
|
| On Tue, 16 Nov 2004 14:24:09 -0500, Reynolds McClatchey thoughtfully
wrote:
>
>
> noi wrote:
>
> I do not have the answer.
>
> On my system I note the /var/log/messages times for named are UTC. These
> times are chronologically in order with the EST times so it is easy to
> translate the time.
>
> I guess this is a user environment setting inherited by syslogd, not a
> sendmail setting? TZ?
Google is your friend
http://www.unix.org.ua/orelly/netwo...pip/appe_04.htm
TimeZoneSpec=tzinfo
Set the local time zone information to tzinfo. If TimeZoneSpec is not
set, the system default is used; if set to null, the user's TZ
variable is used.
Though I would set my hardware clock to local time and DST if you are in a
DST timezone.
|
|
|
|
|