#1033707 fetchmail: START_DAEMON setting is ignored

Package:
fetchmail
Source:
fetchmail
Description:
SSL enabled POP3, APOP, IMAP mail gatherer/forwarder
Submitter:
Julian Gilbey
Date:
2026-05-14 11:33:02 UTC
Severity:
normal
#1033707#5
Date:
2023-03-30 17:21:29 UTC
From:
To:
The /etc/default/fetchmail advertises an option "START_DAEMON", which
defaults to "no".  But since the package also provides a systemd
service, this setting is ignored on a systemd-using machine.  It would
be good to advertise this in the /etc/default/fetchmail (and perhaps
the /etc/init.d/fetchmail) script.

Best wishes,

   Julian

#1033707#10
Date:
2026-05-14 11:30:53 UTC
From:
To:
Dear Maintainer,

i updated fetchmail yesterday from 6.4.39-1 to 6.6.3-2. I did not
restarted the whole system, i only started fetchmail with systemd systemctl.
fetchmail started, retrieved messages and then stopped without error
message. After some investigation i found this bug report
and i can confirm this bug. The systemd-script ignores the DAEMON_MODE
setting in /etc/detault/fetchmail

As a workaround i added the "-d 300" from the init script to the
fetchmail service file /usr/lib/systemd/system/fetchmail.service

ExecStart=/usr/bin/fetchmail --pidfile /run/fetchmail/fetchmailrc.pid -f
/etc/fetchmailrc -d 300

As it breaks a running configuration after upgrade i would suggest to
increase the severity of the bug.

If another solution already exists, this should be noted someewhere.

Thank you for your work!
Best regards
Michael