mjl- / mox

modern full-featured open source secure mail server for low-maintenance self-hosted email
https://www.xmox.nl
MIT License
3.36k stars 89 forks source link

Set syslog facility to mail #187

Closed kiekerjan closed 6 days ago

kiekerjan commented 1 week ago

Setting syslog facility to mail will redirect log output to /var/log/mail.log instead of the /var/log/syslog file

mjl- commented 6 days ago

hi @kiekerjan, this looks fine to me, thanks! with this setting, mail logging indeed goes to /var/log/mail.log. with all log levels, but that's expected mox doesn't do explicit syslog and syslog doesn't know the levels. logging still also goes to /var/log/syslog on my machines. i may have changed the logging settings, or it may be the default. admins can change such settings themselves.

kiekerjan commented 6 days ago

You're right of course, where the log ends up depends on the configuration of syslog. This only tells syslog that the log facility is mail.