e***@gmail.com
2017-07-07 15:06:28 UTC
I installed postfix on a new Debian 9 server.
I noted that in /var/log/mail.log the time of the postfix operations is wrong.
# date
Fri Jul 7 17:00:36 CEST 2017
# tail /var/log/mail.log
Jul 7 10:57:07 genio postfix/postfix-script[13603]: starting the Postfix mail system
Jul 7 10:57:07 genio postfix/master[13605]: daemon started -- version 3.1.4, configuration /etc/postfix
I tried to copy /etc/localtime to /var/spool/postfix/etc/localtime, but each time I restart postfix the file is the same like the original.
# ls -la /var/spool/postfix/etc/localtime*
-rw-r--r-- 1 root root 2692 Jul 7 16:57 localtime
-rw-r--r-- 1 root root 2692 Jul 5 16:17 localtime.orig
Under Debian 9 /etc/localtime is a link to the current timezone, so I copied the localtime from another server, but the same, when I restart postfix the file become the same as the original one.
# ls -la /var/spool/postfix/etc/localtime*
-rw-r--r-- 1 root root 2666 Jul 7 17:04 localtime
-rw-r--r-- 1 root root 2692 Jul 5 16:17 localtime.orig
# file localtime
localtime: timezone data, version 2, 6 gmt time flags, 6 std time flags, no leap seconds, 171 transition times, 6 abbreviation chars
# file localtime.orig
localtime.orig: timezone data, version 2, 7 gmt time flags, 7 std time flags, no leap seconds, 172 transition times, 7 abbreviation chars
# service postfix restart
# ls -la /var/spool/postfix/etc/localtime*
-rw-r--r-- 1 root root 2692 Jul 7 17:05 localtime
-rw-r--r-- 1 root root 2692 Jul 5 16:17 localtime.orig
So how can I solve this issue?
I noted that in /var/log/mail.log the time of the postfix operations is wrong.
# date
Fri Jul 7 17:00:36 CEST 2017
# tail /var/log/mail.log
Jul 7 10:57:07 genio postfix/postfix-script[13603]: starting the Postfix mail system
Jul 7 10:57:07 genio postfix/master[13605]: daemon started -- version 3.1.4, configuration /etc/postfix
I tried to copy /etc/localtime to /var/spool/postfix/etc/localtime, but each time I restart postfix the file is the same like the original.
# ls -la /var/spool/postfix/etc/localtime*
-rw-r--r-- 1 root root 2692 Jul 7 16:57 localtime
-rw-r--r-- 1 root root 2692 Jul 5 16:17 localtime.orig
Under Debian 9 /etc/localtime is a link to the current timezone, so I copied the localtime from another server, but the same, when I restart postfix the file become the same as the original one.
# ls -la /var/spool/postfix/etc/localtime*
-rw-r--r-- 1 root root 2666 Jul 7 17:04 localtime
-rw-r--r-- 1 root root 2692 Jul 5 16:17 localtime.orig
# file localtime
localtime: timezone data, version 2, 6 gmt time flags, 6 std time flags, no leap seconds, 171 transition times, 6 abbreviation chars
# file localtime.orig
localtime.orig: timezone data, version 2, 7 gmt time flags, 7 std time flags, no leap seconds, 172 transition times, 7 abbreviation chars
# service postfix restart
# ls -la /var/spool/postfix/etc/localtime*
-rw-r--r-- 1 root root 2692 Jul 7 17:05 localtime
-rw-r--r-- 1 root root 2692 Jul 5 16:17 localtime.orig
So how can I solve this issue?