Add REST API to gt statistics of the internal queues:
mail generation queue
mail delivery queue (active queue and error queue)
incoming mail queue
The REST API would allow for monitoring and alerting if something goes wrong.