Which of the following entries in /etc/syslog.conf writes all mail related events to the file /var/log/maillog and sends all critical events to the remote server logger.example.com?
Which of the following entries in /etc/syslog.conf writes all mail related events to the file /var/log/maillog and sends all critical events to the remote server logger.example.com?
For mail related events, 'mail.* /var/log/maillog' correctly writes these events to /var/log/maillog. 'mail.crit @logger.example.org' directs all critical mail events to the remote server logger.example.org. The option follows the correct syntax: 'facility.priority action'. Thus, this option ensures that all mail related events are logged to the file and all critical events are sent to the remote server.
For your interest, in newer distributions of Ubuntu the configuration file is: /etc/rsyslog.d/50-default.conf
thanks :)
In Ubuntu 22.04 it is in /etc/rsyslog.conf