Ubuntu 22.04 and postfix 3.6.4
Postfix config is set to use syslog_facility=mail
, and I have modified /etc/rsyslog.d/50-default.conf
to the following
*.*;mail,auth,authpriv.none -/var/log/syslog
mail.warn /var/log/mail.err
Messages of warning and higher are correctly going to /var/log/mail.err, however all levels of mail facility messages are still going to syslog. Am I missing something?
systemctl restart rsyslogd
? Whats the point though? In Ubuntu 22.04 syslog is owned by systemd, rsyslog being demoted to just one way to process it. So why not have whatever application you want to read those file dynamically filter likejournalctl -o short-iso -u postfix@-.service -u example.service -u other.service -p 4
and generate precisely what you need, instead of rough selections stored in flat text files?