The time reported by mailq seems confusing.  Sometimes it seems to be
reporting in system time and sometimes UTC time?

    rwp@havoc:~$ mailq
    -Queue ID-  --Size-- ----Arrival Time---- -Sender/Recipient-------
    7C0CC451*     75575 Wed Mar 10 00:54:52  mailman-boun...@gnu.org
                                             ml...@lh.proulx.com

    rwp@havoc:~$ grep 7C0CC451 /var/log/mail.log
    Mar  9 17:54:52 havoc postfix/smtpd[12886]: 7C0CC451: 
client=eggs.gnu.org[209.51.188.92]
    Mar  9 17:54:52 havoc postfix/cleanup[12887]: 7C0CC451: 
message-id=<mailman.12285.1615337667.5833.libmicroht...@gnu.org>
    Mar  9 17:54:52 havoc postfix/qmgr[31282]: 7C0CC451: 
from=<mailman-boun...@gnu.org>, size=75575, nrcpt=1 (queue active)
    Mar  9 17:55:35 havoc postfix/local[12529]: 7C0CC451: 
to=<ml...@lh.proulx.com>, relay=local, delay=43, delays=0.22/0/0/43, dsn=2.0.0, 
status=sent (delivered to command: IFS=' ';exec /usr/bin/procmail || exit 75 
#mlmgr)
    Mar  9 17:55:35 havoc postfix/qmgr[31282]: 7C0CC451: removed

Okay.  The above looks like UTC.

    rwp@havoc:~$ date -R
    Tue, 09 Mar 2021 17:55:27 -0700

    rwp@havoc:~$ date -Ru -d 'Tue, 09 Mar 2021 17:55:27 -0700'
    Wed, 10 Mar 2021 00:55:27 +0000

But it isn't always so.

    rwp@havoc:~$ mailq
    -Queue ID-  --Size-- ----Arrival Time---- -Sender/Recipient-------
    013A7451*     26102 Tue Mar  9 23:07:38  mailman-boun...@gnu.org
                                             ml...@lh.proulx.com
    rwp@havoc:~$ grep 013A7451 /var/log/mail.log
    Mar  9 23:07:38 havoc postfix/smtpd[639]: 013A7451: 
client=eggs.gnu.org[209.51.188.92]
    Mar  9 23:07:38 havoc postfix/cleanup[600]: 013A7451: 
message-id=<mailman.21072.1615356380.30133.help-shi...@gnu.org>
    Mar  9 23:07:39 havoc postfix/qmgr[31282]: 013A7451: 
from=<mailman-boun...@gnu.org>, size=26102, nrcpt=1 (queue active)
    Mar  9 23:07:57 havoc postfix/local[8169]: 013A7451: 
to=<ml...@lh.proulx.com>, relay=local, delay=19, delays=1.9/0.02/0/17, 
dsn=2.0.0, status=sent (delivered to command: IFS=' ';exec /usr/bin/procmail || 
exit 75 #mlmgr)
    Mar  9 23:07:57 havoc postfix/qmgr[31282]: 013A7451: removed

If it were always one way or the other I would have ignored the
timezone difference.  But it seems to only sometimes be one way and
sometimes the other way?

Yes I am on an older version of Postfix 3.1.15 on an older system that
I am behind on updating.  But I wouldn't expect this part of the code
path to have changed recently.

Thanks!
Bob

P.S. Normally I am a UTC or GTFO for servers too.  That avoids all of
these types of questions.  But this one is set to local time.  I am
being bad on it.

Reply via email to