Koozali.org: home of the SME Server

Timezone in the mailserver

jcth

Timezone in the mailserver
« on: May 31, 2004, 07:07:17 AM »
Hello everyone,

I am running sme 6.0 in server only mode.
All works fine, but there is at litle thing that I cant get a grip on.

My "date"-function shows the right time and timezone, but when I look on a mailheader, then it shows -0000 insted of +0200.

I use a ntp server, time and timezone was set before I setup the time server.

All other things "knows the right time" except the mail server.

some info from the server:

[root@smesrv root]# clock
Mon 31 May 2004 06:59:09 AM CEST  0.254481 seconds

[root@smesrv root]# date
Mon May 31 07:00:28 CEST 2004

my $localtime looks like this:
../usr/share/zoneinfo/Europe/Copenhagen


What am I doing wrong?

Regards

Jens

Offline elmarconi

  • ****
  • 139
  • +0/-0
Timezone in the mailserver
« Reply #1 on: May 31, 2004, 01:16:39 PM »
Copy ../usr/share/zoneinfo/Europe/Copenhagen to /var/spool/smtpd/etc/localtime

restart mail deamon(s)
...

Anonymous

Timezone in the mailserver
« Reply #2 on: May 31, 2004, 03:16:29 PM »
Quote from: "elmarconi"
Copy ../usr/share/zoneinfo/Europe/Copenhagen to /var/spool/smtpd/etc/localtime

restart mail deamon(s)


Hello elmarconi,

Thanks for a fast replay.
I just dont have a catalog of that name (/var/spool/smtpd/etc/localtime).

Jens

Offline elmarconi

  • ****
  • 139
  • +0/-0
Timezone in the mailserver
« Reply #3 on: May 31, 2004, 03:32:33 PM »
Ill check...

[root@smeserver /root]# ssh smeserver2
Last login: Fri May 28 16:43:13 2004 from [munged]
Welcome to SME Server 6.0.1-01
[root@smeserver2 root]# locate localtime
/etc/localtime
/etc/localtime.rpmnew
/usr/lib/perl5/5.6.1/Time/localtime.pm
/usr/lib/perl5/5.6.1/i386-linux/auto/POSIX/localtime.al
/usr/share/man/man3/Time::localtime.3pm.gz

Hmmm, I thought i had it right, since this was the trick a I applied to a 5.1.2 server.

Strange...
...

Offline elmarconi

  • ****
  • 139
  • +0/-0
Timezone in the mailserver
« Reply #4 on: May 31, 2004, 03:42:15 PM »
Next try:

add TZ="GMT+l" to the environment of the qmail and/or smtpd run supervise files.



/var/qmail/etc/service/qmail/run
/var/service/smtpfront-qmail/run
...