'Postfix logging only contains warnings

Never mind what I configure, mail.log only contains warnings. No MSG IDs or other logging information.

Things I've tried so far:

  • smtpd -v/-vv in in the relevant service definitions in master.cf,
  • debug_peer_list / debug_peer_level = (mail)?
  • Combination thereof.

Postfix is 3.5.6-1+b1 running on a stock Bullseye. More than happy to provide more information if required.



Solution 1:[1]

Turns out to be a journald / rsyslog configuration clash.

After properly integrating systemd's journald and rsyslog (cf. https://www.rsyslog.com/doc/v8-stable/configuration/modules/imuxsock.html#imuxsock-systemd-details-label and https://www.freedesktop.org/software/systemd/man/journald.conf.html for the details; tip: don't use rsyslog's imjournal module for the journald integration if you're looking for realtime log updates as only the socket-based integration seems to be able to handle this) Postfix logging works as expected.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 monochromec