On 2017-05-08 19:02, Wilhelm Boltz wrote:
Hello,
I don't like fetchmail (6.3.26-14.1) logging to an extra logfile without giving the date & time. Setting syslog in fetchmailrc is not the successfull way to get fetchmail log to syslog, it only produces this message: "fetchmail[3045]: syslog and logfile options are both set, ignoring syslog, and logging to /var/ log/fetchmail".
Probably it is caused by systemd-fetchmail-exec in /usr/lib because of the option "-L /var/log/fechtmail". Commenting it out makes fetchmail logging to syslog which can be read by "journalctl -u fetchmail.service".
Because I am DAU (with some experience) I wonder whether next update will overwrite my setting. And, of course, it may be big nonsense what I am doing. Any hints?
Your assumptions are all correct. No nonsense at all. IMO, it is a bug that fetchmail service is set to log to a file, the default should be syslog. But the default syslog is not syslog at all, but systemd journal. The journal will fill up fast to a huge size with mail reports. You can of course start a standard syslog daemon (I recomend rsyslog), and limit the size of the systemd journal. You can, however, override a service with your own service with a file of the same name under /etc/systemd/system/, and this will not be overwritten. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" (Minas Tirith))