We have multiple problems fetching mails in the ERP where Odoo mail fetching process gets hanged which forces us to restart Odoo service.

We suspect (but not sure because of the lack of log output) that they are due to bad Internet connection between Odoo and the mail provider (outside of the country and potentially slowed down by the Great Firewall).

We think that this might be caused by timeout and retry management (or lack thereof) in Odoo (I remember some conversation in this mailing list about the topic).