Re: Mailq timestamps in localtime rather than UTC

2019-10-24 Thread Pedro David Marco
level{'calm'}++; Thanks Wietse! Pedro. On Thursday, October 24, 2019, 6:08:11 PM GMT+2, Wietse Venema wrote: Pedro David Marco: >  I use Devuan Ascii. It uses GLIBC 2.24 > My main concern is that this problem may affect how postfix deals > with deferred emails... > What do you think,

Re: Mailq timestamps in localtime rather than UTC

2019-10-24 Thread Wietse Venema
Pedro David Marco: > I use Devuan Ascii. It uses GLIBC 2.24 > My main concern is that this problem may affect how postfix deals > with deferred emails... > What do you think, Wietse? UNIX systems use UTC internally, therefore Postfix scheduling is UTC based, and does not depend on what timezone t

Re: Mailq timestamps in localtime rather than UTC

2019-10-24 Thread Pedro David Marco
as good as it gets... thanks Viktor! Pedro. On Thursday, October 24, 2019, 5:53:53 PM GMT+2, Viktor Dukhovni wrote: > On Oct 24, 2019, at 5:10 PM, Pedro David Marco > wrote: > > My main concern is that this problem may affect how postfix deals with > deferred emails... Locale an

Re: Mailq timestamps in localtime rather than UTC

2019-10-24 Thread Viktor Dukhovni
> On Oct 24, 2019, at 5:10 PM, Pedro David Marco wrote: > > My main concern is that this problem may affect how postfix deals with > deferred emails... Locale and timezone specific human readable date strings don't enter into how Postfix deals with time internally. So postqueue(1) time output

Re: Mailq timestamps in localtime rather than UTC

2019-10-24 Thread Pedro David Marco
I use Devuan Ascii. It uses GLIBC 2.24 My main concern is that this problem may affect how postfix deals with deferred emails...  What do you think, Wietse? Thanks, Pedro. On Thursday, October 24, 2019, 4:53:45 PM GMT+2, Wietse Venema wrote: Pedro David Marco: >  Thanks Matus... > da

Re: Mailq timestamps in localtime rather than UTC

2019-10-24 Thread Wietse Venema
Pedro David Marco: > Thanks Matus... > date -u shows correct UTC time. > Monitoring mailq with strace i have seen it always reads the > file?/usr/share/zoneinfo/UTC? but "date" and "env - date"? commads read the > file "/etc/localtime" (shown by strace) > > So it seems that? mailq always shows

Re: Mailq timestamps in localtime rather than UTC

2019-10-24 Thread Pedro David Marco
Thanks Matus... date -u shows correct UTC time. Monitoring mailq with strace i have seen it always reads the file  /usr/share/zoneinfo/UTC  but "date" and "env - date"  commads read the file "/etc/localtime" (shown by strace) So it seems that  mailq always shows UTC time despite system localtime

Re: Mailq timestamps in localtime rather than UTC

2019-10-24 Thread Matus UHLAR - fantomas
On 24.10.19 09:05, Pedro David Marco wrote: Normal user: $ date; env - dateThu Oct 24 10:56:11 CEST 2019Thu Oct 24 10:56:11 CEST 2019$ Postfix user: $ date; env - dateThu Oct 24 10:56:13 CEST 2019Thu Oct 24 10:56:13 CEST 2019$ I guess Postfix is taking just EPOCH time whitout considering localiza

Re: Mailq timestamps in localtime rather than UTC

2019-10-24 Thread Wietse Venema
Pedro David Marco: > Thanks Wietse, > Normal user: > $ date; env - dateThu Oct 24 10:56:11 CEST 2019Thu Oct 24 10:56:11 CEST 2019$ > Postfix user: > $ date; env - dateThu Oct 24 10:56:13 CEST 2019Thu Oct 24 10:56:13 CEST 2019$ > I guess Postfix is taking just EPOCH time whitout considering > loca

Re: Mailq timestamps in localtime rather than UTC

2019-10-24 Thread Pedro David Marco
Thanks Wietse, Normal user: $ date; env - dateThu Oct 24 10:56:11 CEST 2019Thu Oct 24 10:56:11 CEST 2019$ Postfix user: $ date; env - dateThu Oct 24 10:56:13 CEST 2019Thu Oct 24 10:56:13 CEST 2019$ I guess Postfix is taking just EPOCH time whitout considering localization...  so i agree with you

Re: Mailq timestamps in localtime rather than UTC

2019-10-23 Thread Wietse Venema
Pedro David Marco: > Thanks Wietse.. > The? output is this:?? > # date ; env - dateWed Oct 23 21:22:20 CEST 2019Wed Oct 23 21:22:20 CEST 2019# > It is actual valid localtime...? > Thanks again, > Pedro. Can you run this AS A NON-ROOT USER? On the same machine that runs Postfix? The Postfix mailq

Re: Mailq timestamps in localtime rather than UTC

2019-10-23 Thread Pedro David Marco
Thanks Wietse.. The  output is this:   # date ; env - dateWed Oct 23 21:22:20 CEST 2019Wed Oct 23 21:22:20 CEST 2019# It is actual valid localtime...  Thanks again, Pedro. On Wednesday, October 23, 2019, 3:56:51 PM GMT+2, Wietse Venema wrote: Pedro David Marco: > Hi, > my Postfix 3.1.12

Re: Mailq timestamps in localtime rather than UTC

2019-10-23 Thread Wietse Venema
Pedro David Marco: > Hi, > my Postfix 3.1.12 mailq command is showing timestamps in UTC... is it > possible to have them in localtime? > > It is not chrooted and /etc/localtime is correct. What is the output from: date ; env - date I'm asking this, because the date conversion happens in the po