James Brown:
> 
> > On 30 Nov 2018, at 4:07 am, Viktor Dukhovni <postfix-us...@dukhovni.org> 
> > wrote:
> > 
> > 
> >> On Nov 29, 2018, at 9:15 AM, Robert Chalmers <racu...@gmail.com> wrote:
> >> 
> >> I upgraded to and installed 3.4 today. It appears to be running, but all 
> >> logging has stopped. The last entry in the log file was at the exact time 
> >> I started the new version.
> > 
> > Apple changed the syslog API to use the os_log(3) interface, but apparently
> > if you compile on a sufficiently old MacOS/X system, you get linked against
> > the traditional syslog API.
> > 
> > So some people do that, but the os_log(3) stuff is configurable, so you
> > should be able to configure the logs to be saved.  The in-memory logs
> > can be queried with log(1).  For example:
> > 
> >  # postfix reload
> >  postfix/postfix-script: refreshing the Postfix mail system
> > 
> >  # log show --info --style syslog --last 2m --predicate 'eventType == 
> > logEvent'  | grep libpostfix-util
> >  2018-11-29 12:02:26.765215-0500  localhost postlog[59348]: 
> > (libpostfix-util.dylib) refreshing the Postfix mail system
> >  2018-11-29 12:02:26.776443-0500  localhost master[33680]: 
> > (libpostfix-util.dylib) reload -- version 3.4-20181125, configuration 
> > /var/tmp/postfix/etc
> > 
> > Someone should figure out how create an asl.conf(5) configuration
> > that causes appropriate Postfix logs to land on disk, and share
> > the recipe.
> > 
> > I should note that the new API appears to strip everything up to
> > the last "/" in the log name, so we're losing the "postfix/"
> > prefixes.  Might need to change the code (on MacOS) to send
> > 
> >     postfix:master
> > 
> > rather than
> > 
> >     postfix/master
> > 
> > -- 
> >     Viktor
> 
> Thanks Viktor. It would be great if Postfix would log to disk on newer 
> versions of macOS X like it did before. My Mojave test mail server has 
> Dovecot logging to /var/log/mail.log but Postfix doesn?t.
> 
> Has anyone managed to do this? I?d rather not have to compile on old Mac and 
> transfer. 
> 
> Really need logging to disk for fail2ban to work with Postfix.

For that, you will have to build Postfix on an older MacOS. Postfix
does not decide where the logging is sent. Postfix logs to the
syslog port as it has been doing for 20+ years.

        Wietse

        Wietse

Reply via email to