Problem: Fetchmail does not start any more

Problem

Fetchmail service does not start any more. The service shows as “stopped” in UMC:
grafik

On command line you will see the output of the start process:

 Ein Fehler ist aufgetreten:

Die Anfrage konnte nicht ausgeführt werden.

Fehlernachricht des Servers:

Der Dienst fetchmail konnte nicht neugestartet werden:
● fetchmail.service - LSB: init-Script for system wide fetchmail daemon
Loaded: loaded (/etc/init.d/fetchmail; generated; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2018-12-12 16:31:21 CET; 6ms ago
Docs: man:systemd-sysv-generator(8)
Process: 19372 ExecStart=/etc/init.d/fetchmail start (code=exited, status=1/FAILURE)
CPU: 29ms

Dez 12 16:31:21 dc systemd[1]: Starting LSB: init-Script for system wide fetchmail daemon...
Dez 12 16:31:21 dc fetchmail[19372]: Starting mail retriever agent: fetchmailfetchmail:/etc/fetchmailrc:9: syntax error bei password
Dez 12 16:31:21 dc fetchmail[19372]: failed!
Dez 12 16:31:21 dc systemd[1]: fetchmail.service: Control process exited, code=exited status=1
Dez 12 16:31:21 dc systemd[1]: Failed to start LSB: init-Script for system wide fetchmail daemon.
Dez 12 16:31:21 dc systemd[1]: fetchmail.service: Unit entered failed state.
Dez 12 16:31:21 dc systemd[1]: fetchmail.service: Failed with result 'exit-code'.

Solution

Settings in the configuration file are wrong due to some manual editing of the file:
/etc/fetchmailrc:9: syntax error bei password

Re-write the configuration file an start the service with the commands

ucr commit /etc/fetchmailrc
systemctl start fetchmail
Mastodon