Aigor79

Q: MaOS Sierra postfix doesn't write log

Now for me it's impossible to read any log about smtp activity. /var/log/mail.log is missing but Postfix works well

Mac mini (Late 2014), iOS 10.0.2

Posted on Oct 1, 2016 6:26 AM

Close

Q: MaOS Sierra postfix doesn't write log

  • All replies
  • Helpful answers

  • by Arne Rolf Heier,Helpful

    Arne Rolf Heier Arne Rolf Heier Oct 16, 2016 1:22 AM in response to Aigor79
    Level 1 (9 points)
    Servers Enterprise
    Oct 16, 2016 1:22 AM in response to Aigor79

    Apple have a new log system in Sierra. It is not using the log files or asl.

    The logs are in memory or a log db.

     

    log -- Access system wide log messages created by os_log, os_trace and other logging systems.

     

    You can read the smtpd log from terminal with this command.

    log show --start "2016-10-16"  --end "2016-10-17" --predicate  'process == "smtpd"' --debug

  • by Aigor79,

    Aigor79 Aigor79 Oct 16, 2016 1:28 AM in response to Arne Rolf Heier
    Level 1 (4 points)
    Mac OS X
    Oct 16, 2016 1:28 AM in response to Arne Rolf Heier

    Thanks for your reply.

    Could you confirm that we can't have a real time log now?

    Now I have a report like this:

    Skipping info messages, pass --info to include.
    Filtering the log data using "process == "smtpd""
    Timestamp                       Thread     Type        Activity             PID    
     --------------------------------------------------------------------------------------------------------------------
    Log      - Default:          0, Info:                0, Debug:             0, Error:          0, Fault:          0
    Activity - Create:           0, Transition:          0, Actions:           0
    

    Thanks