From 6386440877cc494d8cf450d5da8bfc8fadb91391 Mon Sep 17 00:00:00 2001 From: Marcel Herrguth Date: Wed, 6 Jul 2022 13:08:14 +0200 Subject: [PATCH] Maintenance: Add missing log parse parts plus hint Modoboa also offers log parsing which was not yet reflected in the cron job sample of the manual installation part. As log parsing can be fairly CPU intensive there's also a hint for that. --- doc/manual_installation/modoboa.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doc/manual_installation/modoboa.rst b/doc/manual_installation/modoboa.rst index 156ace9a9..f78ec8aef 100644 --- a/doc/manual_installation/modoboa.rst +++ b/doc/manual_installation/modoboa.rst @@ -235,11 +235,23 @@ following content inside: 0 0 * * * modoboa $PYTHON $INSTANCE/manage.py clearsessions # Logs table cleanup 0 0 * * * modoboa $PYTHON $INSTANCE/manage.py cleanlogs + # Logs parsing + */15 * * * * root $PYTHON $INSTANCE/manage.py logparser &> /dev/null + 0 * * * * modoboa $PYTHON $INSTANCE/manage.py update_statistics # DNSBL checks */30 * * * * modoboa $PYTHON $INSTANCE/manage.py modo check_mx # Public API communication 0 * * * * modoboa $PYTHON $INSTANCE/manage.py communicate_with_public_api +.. hint:: **🥵 potential high load configuration** + + Please note that above crontab might not be ideal on high load systems. + If you receive a fairly high amount of emails per day, you may want to + run modoboas logparser tasks *once per night*. + + This has the down side that the statistic graph and message log within + the UI are updated once per day only. + .. _policy_daemon: Policy daemon