I’m having trouble getting mail through the connectors. Occasionally, a random connector hangs when receiving mail. When you try to download now, the download indicator is spinning endlessly in the Download output terminal window. Rescues disconnecting / enabling the connector. There are no errors in the logs. The connector service seems to hang in cron. Tell me, who faced such a problem how to win?
Yes, I try to kill the getmail process. It helps, but after a while the problem has to be solved manually again. I have noticed that the connector hangs when processing a large volume of mail. How to automate the process? How to automatically kill hung processes, for example, once an hour?
You could check which mail makes the getmail process hang in /var/log/maillog and delete it on the server.
Killing the processes hourly is no real solution, just a workaround. In this case you need a cronjob.
I recommend the crontab module by @stephdl to be able to overview and manage your cronjobs in the UI.
This example runs “killall getmail” every hour, like 1:00, 2:00, 3:00 etc