incorrect time from sendmail (FBSD 5.3)

Malcolm Kay malcolm.kay at internode.on.net
Fri Sep 10 18:42:36 PDT 2004


On Fri, 10 Sep 2004 01:57 pm, cscott at speakeasy.net wrote:
> Hi,
>
> I can not get sendmail to use the correct timezone on my system. The
> timezone is set via tzsetup to PDT (localtime).  /etc/localtime exists. The
> system reports the correct time everywhere. The problem is that sendmail
> insists on using UTC. I have tried setting the cmos time to UTC, then
> configuring the timezone (via tzsetup) as PDT but having the cmos set to
> UTC. Sendmail still does not make the appropriate adjustment when creating
> it's header:
>
> Received: from xxx.xxx.xxx.xxx (unverified [xxx.xxx.xxx.xxx])
>           by webmail2 (VisualMail 4.0)
>           with WEBMAIL id 2294;
>           Fri, 10 Sep 2004 04:18:41 +0000
> From: whoever at whereever.com
>
> The sendmail .cf file is set to USE_TZ (default).  I have dug through
> newsgroups, faqs, howto, etc. and I can't find what is wrong. Is this a bug
> in 5.3 ?
>

I believe this may be your problem. My understanding is the USE_TZ is for use
with systems which set time zone using a TZ environment variable. 
I believe you need USE_SYSTEM.
(however I'm not a "sendmail" expert <or even apprentice>)

Malcolm



More information about the freebsd-questions mailing list