Author Topic: [SOLVED] Zentyal 5 Mail module always reported as Stopped  (Read 2608 times)

gabrieletassoni

  • Zen Apprentice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
[SOLVED] Zentyal 5 Mail module always reported as Stopped
« on: November 13, 2017, 11:36:49 pm »
Zentyal 5.0.10

It looks like is just an error in reporting the status, but I'd like to be sure everything is ok.

My system tells me that the Mail module is stopped, if I try to restart it, it looks like the process goes right, but in the end it's always reported as STOPPED, also, from shell:

Code: [Select]
~$ sudo zs mail status
Zentyal: status module mail: [ STOPPED ]

Even the "External retrieval service" is reported as stopped, and maybe these are two correlated problems.

If I go to Mail -> General -> Mail Server Options I can se as checked the "Retrieve mail for external accounts" config, so it looks like it's rightly configured, but still reported as Stopped on the Dashboard.

How could I resolve this issue and be sure the system is alright?

Thanks
« Last Edit: November 14, 2017, 12:10:07 am by gabrieletassoni »

gabrieletassoni

  • Zen Apprentice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Zentyal 5 Mail module always reported as Stopped
« Reply #1 on: November 13, 2017, 11:54:08 pm »
They definitely are chained, if I disable the "Retrieve mail for external accounts", the mail module is being reported as Started, correctly. Now I need to understand why the fetchmail is being stopped, I just found a cryptic error message, but to me looks not really useful, anyay, as a reference, here it is (it appears in syslog whenever I try to enable the "Retrieve mail for external accounts".

Code: [Select]
Nov 13 23:44:30 zentyal4 systemd[1]: Started Zentyal fetchmail daemon.
Nov 13 23:44:30 zentyal4 systemd[1]: zentyal.fetchmail.service: Main process exited, code=exited, status=1/FAILURE
Nov 13 23:44:30 zentyal4 systemd[1]: zentyal.fetchmail.service: Unit entered failed state.
Nov 13 23:44:30 zentyal4 systemd[1]: zentyal.fetchmail.service: Failed with result 'exit-code'.
Nov 13 23:44:30 zentyal4 systemd[1]: zentyal.fetchmail.service: Service hold-off time over, scheduling restart.
Nov 13 23:44:30 zentyal4 systemd[1]: Stopped Zentyal fetchmail daemon.
Nov 13 23:44:30 zentyal4 systemd[1]: zentyal.fetchmail.service: Start request repeated too quickly.
Nov 13 23:44:30 zentyal4 systemd[1]: Failed to start Zentyal fetchmail daemon.

gabrieletassoni

  • Zen Apprentice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: [SOLVED] Zentyal 5 Mail module always reported as Stopped
« Reply #2 on: November 14, 2017, 12:12:34 am »
Here is the soltution: https://forum.zentyal.org/index.php?topic=30733.0

I changed /bin/false to /bin/sh in /etc/passwd, on the fetchmail line.

After that, when re-enabled the "Retrieve mail for external accounts", the Mail module is no more marked as stopped, as well as the "Retrieve mail for external accounts"