Bug ID 1033081
Summary fetchmail hardcoded to use log file - syslogging thus unavailable
Classification openSUSE
Product openSUSE Distribution
Version Leap 42.2
Hardware x86-64
OS openSUSE 42.2
Status NEW
Severity Normal
Priority P5 - None
Component Other
Assignee bnc-team-screening@forge.provo.novell.com
Reporter jmozdzen@nde.ag
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

:~ # rpm -qi fetchmail
Name        : fetchmail
Version     : 6.3.26
Release     : 18.1
Architecture: x86_64

Looking at fetchmail.service -> /usr/lib/fetchmail-systemd-exec, I see that
using logging to log file is hard-coded there:

--- cut here: /usr/lib/fetchmail-systemd-exec ---
exec /usr/bin/fetchmail $OPTS $FETCHMAIL_EXPERT_OPTIONS \
        -f $FETCHMAIL_RC_PATH -L /var/log/fetchmail
--- cut here ---

Hence, activating logging to syslog via options doesn't work:

--- cut here ---
:~ # grep syslog /etc/fetchmailrc 
set syslog
:~ # systemctl restart fetchmail
:~ # 

2017-04-09T17:36:13.480966+02:00 myhost fetchmail[4441]: syslog and logfile
options are both set, ignoring syslog, and logging to /var/log/fetchmail
--- cut here ---

A possible change would be to move "-L /var/log/fetchmail" to
/etc/sysconfig/fetchmail (i.e. to FETCHMAIL_EXPERT_OPTIONS variable, or a new

You are receiving this mail because: