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 > ^^^^^^^^^^^^^^^ time of last reload > 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=<20190123133010.9c59c1032...@albion.stonejongleux.com> > Jan 23 07:30:10 albion postfix/qmgr[61559]: 9C59C1032D4E: > from=<la...@albion.stonejongleux.com>, 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=<la...@stonejongleux.com>, 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 > 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=<20190123135536.2af4e1032...@albion.stonejongleux.com> > Jan 23 07:30:10 albion postfix/qmgr[61559]: 2AF4E1032E6B: > from=<la...@albion.stonejongleux.com>, size=843, nrcpt=1 (queue active) > ^^^^^^^^^^^^^^^ time of first activity above > > And from a few minutes ago to provide some greater time separation from the > last reload: > Jan 23 10:31:00 albion postfix/pickup[64766]: C81A61033C87: uid=501 > from=<la...@stonejongleux.com> > Jan 23 10:31:00 albion postfix/cleanup[64795]: C81A61033C87: > message-id=<20190123163100.c81a61033...@albion.stonejongleux.com> > Jan 23 07:30:10 albion postfix/qmgr[61559]: C81A61033C87: > from=<la...@stonejongleux.com>, size=1590, nrcpt=1 (queue active) > ^^^^^^^^^^^^^^^ time of first activity above > Jan 23 10:31:01 albion postfix/smtp[64798]: 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 10:31:01 albion postfix/smtp[64798]: C81A61033C87: > to=<la...@stonejongleux.com>, relay=smtp.your-site.com[205.233.73.98]:587, > delay=0.63, delays=0.05/0.03/0.43/0.11, dsn=2.0.0, status=sent (250 2.0.0 Ok: > queued as 43l9l92Zkzz16xT) > Jan 23 07:30:10 albion postfix/qmgr[61559]: C81A61033C87: removed > ^^^^^^^^^^^^^^^ time of first activity above > > -- > Larry Stone > lston...@stonejongleux.com > > > > > > > On Jan 19, 2019, at 3:10 PM, John Stoffel <j...@stoffel.org> wrote: > > > >>>>>> "Wietse" == Wietse Venema <wie...@porcupine.org> writes: > > > > Wietse> John Stoffel: > >>>>>>>> "Wietse" == Wietse Venema <wie...@porcupine.org> writes: > >>> > > Wietse> I'm implementing logfile support for Postfix on MacOS, because not > > Wietse> providing results in a bad experience. > >>> > > Wietse> This is a retrofit workaround, therefore it will have limitations > > Wietse> that do not exist with the default syslog-based implementation. > >>> > >>> Why not just provide a syslog daemon configured for only Postfix use > >>> on MACs? > > > > Wietse> Sorry, I will not support syslogd or other non-Postfix programs. > > > > I can understand that, but I was more thinking of writing a syslogd > > compatible receiver for macOS, so that you dno't have to change all > > the rest of the postfix base. Yes, it's not ideal, but supporting > > MACs isn't ideal these days either. > > > > John > > > >