Hi all!
After upgrade can`t get external mail. In syslog I see errors:
Feb 16 14:04:33 mail systemd[1]: Started Zentyal fetchmail daemon.
Feb 16 14:04:33 mail systemd[1]: zentyal.fetchmail.service: Main process exited, code=exited, status=1/FAILURE
Feb 16 14:04:33 mail systemd[1]: zentyal.fetchmail.service: Unit entered failed state.
Feb 16 14:04:33 mail systemd[1]: zentyal.fetchmail.service: Failed with result 'exit-code'.
Feb 16 14:04:33 mail systemd[1]: zentyal.fetchmail.service: Service hold-off time over, scheduling restart.
Feb 16 14:04:33 mail systemd[1]: Stopped Zentyal fetchmail daemon.
...
Feb 16 14:04:34 mail systemd[1]: zentyal.fetchmail.service: Start request repeated too quickly.
Feb 16 14:04:34 mail systemd[1]: Failed to start Zentyal fetchmail daemon.
After many tries to fix it, I found why, on this forum:
https://forum.zentyal.org/index.php?topic=21633.0The problem was that fetchmail user doesn`t have shell.
fetchmail:x:115:65534::/var/lib/fetchmail:/bin/false
Then I found solution on this forum too (
https://forum.zentyal.org/index.php?topic=4447.0):
sudo chsh -s /bin/sh fetchmail
But, service "External retrieval service" in Zentyal web-admin control panel marked as stopped. If I try to start it,
I see in syslog:
Feb 17 16:21:00 mail systemd[1]: Stopping Zentyal fetchmail daemon...
Feb 17 16:21:00 mail fetchmail[2715]: terminated with signal 15
Feb 17 16:21:00 mail su[2673]: Session terminated, terminating shell... ...terminated.
Feb 17 16:21:00 mail systemd[1]: zentyal.fetchmail.service: Main process exited, code=exited, status=143/n/a
Feb 17 16:21:00 mail systemd[1]: Stopped Zentyal fetchmail daemon.
Feb 17 16:21:00 mail systemd[1]: zentyal.fetchmail.service: Unit entered failed state.
Feb 17 16:21:00 mail systemd[1]: zentyal.fetchmail.service: Failed with result 'exit-code'.
Feb 17 16:21:00 mail systemd[1]: Started Zentyal fetchmail daemon.
Feb 17 16:21:00 mail fetchmail[27754]: starting fetchmail 6.3.26 daemon
Feb 17 16:21:01 mail cron[631]: (*system*ebox-mail) RELOAD (/etc/cron.d/ebox-mail)
Feb 17 16:21:01 mail CRON[27905]: (root) CMD ([ -x /usr/share/zentyal-mail/fetchmail-update ] && /usr/share/zentyal-mail/fetchmail-update)
As I see, fetchmail is started & worked, external mail is receiving, but, service "External retrieval service" in Zentyal web-admin still marked as stopped!
How Zentyal is determine status of services, and how can I fix it?