Discussion:
Log timestamp wrong
(too old to reply)
e***@gmail.com
2017-07-07 15:06:28 UTC
Permalink
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?
skhohlov
2017-07-07 18:18:33 UTC
Permalink
Post by e***@gmail.com
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.
Which user is used for starting postfix ?
Post by e***@gmail.com
# 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?
e***@gmail.com
2017-07-10 07:12:38 UTC
Permalink
Post by skhohlov
Post by e***@gmail.com
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.
Which user is used for starting postfix ?
The master starts as root, the other process as postfix:

root 13825 0.0 0.0 83212 4540 ? Ss Jul07 0:00 /usr/lib/postfix/sbin/master -w
postfix 13827 0.0 0.0 85324 6796 ? S Jul07 0:00 qmgr -l -t unix -u
postfix 14198 0.0 0.0 89624 8684 ? S Jul07 0:00 tlsmgr -l -t unix -u -c
postfix 26587 0.0 0.0 85276 6800 ? S 08:28 0:00 pickup -l -t unix -u -c -o content_filter= -o receive_override_options=no_header_body_checks
e***@gmail.com
2017-07-10 08:27:19 UTC
Permalink
Post by e***@gmail.com
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 solved restarting rsyslog.

Loading...