Wietse Venema: > Larry Stone: > > I noticed what appears to be a cosmetic problem: log entries from master > > are being time-stamped with the time they were last started or ?postfix > > reload?-ed rather than the current time and log entries from qmgr are being > > time-stamped with the time of the first activity since the start or reload. > > postlogd may receive events that were sent earlier (by smtpd, qmgr, > etc.) and that were still queued up in the kernel. > > The time stamp prefix string in a logfile record is formatted in > the sending process, at the time that that process gets from the > kernel using the time() system call. If the clock inside a process > does not advance, then MacOS is doing something unusual. > > Wietse > > > I did a postfix reload this morning while debugging my log file > > rotate/compress job: > > Jan 23 07:16:00 albion postfix/postfix-script[61552]: refreshing the > > Postfix mail system > > Jan 22 14:43:45 albion postfix/master[45505]: reload -- version > > 3.4-20190121-nonprod, configuration /usr/local/etc/postfix
Note that these are out of order; apparently, the Jan 22 14:43:45 event was not logged until the next day, when "postfix reload" was logged by the postlog program which triggered the execution of a new postlogd process. > > Jan 23 07:30:10 albion postfix/pickup[61558]: 9C59C1032D4E: uid=501 > > from=<larry> > > Jan 23 07:30:10 albion postfix/cleanup[61784]: 9C59C1032D4E: > > message-id=<[email protected]> > > Jan 23 07:30:10 albion postfix/qmgr[61559]: 9C59C1032D4E: > > from=<[email protected]>, size=1041, nrcpt=1 (queue active) > > Jan 23 07:30:11 albion postfix/smtp[61792]: Anonymous TLS connection > > established to smtp.your-site.com[205.233.73.98]:587: TLSv1.2 with cipher > > ADH-AES256-GCM-SHA384 (256/256 bits) > > Jan 23 07:30:11 albion postfix/smtp[61792]: 9C59C1032D4E: > > to=<[email protected]>, relay=smtp.your-site.com[205.233.73.98]:587, > > delay=0.88, delays=0.12/0.16/0.44/0.16, dsn=2.0.0, status=sent (250 2.0.0 > > Ok: queued as 43l5kW2zJ5zycF) > > Jan 23 07:30:10 albion postfix/qmgr[61559]: 9C59C1032D4E: removed I suppose that after "postfix reload" the queue manager was not restarted immediately at 07:16:00, as a MacOS battery saving feature. > > Jan 23 07:30:10 albion postfix/pickup[61558]: 2AF4E1032E6B: uid=501 > > from=<larry> > > Jan 23 07:55:36 albion postfix/cleanup[62203]: 2AF4E1032E6B: > > message-id=<[email protected]> > > Jan 23 07:30:10 albion postfix/qmgr[61559]: 2AF4E1032E6B: > > from=<[email protected]>, size=843, nrcpt=1 (queue active) I guess this message was posted 25 minutes later, based on the cleanup time stamp. Same pickup process ID, and same time stamp as with the previous message. Same qmgr process ID, and same time stamp as with the previous message. Apparently, the pickup and qmgr clocks have not advanced, as if MacOS is caching the lookup result from the time() system call. Wietse
