cloud-modoboa/templates/etc/cron.d/modoboa.j2
2023-08-20 10:31:08 +02:00

21 lines
779 B
Django/Jinja
Executable File

#
# Modoboa specific cron jobs
#
PYTHON={{ modoboa_py_venv_bin }}/python3
INSTANCE={{ modoboa_instance_folder }}/{{ modoboa_instance }}
# Operations on mailboxes
* * * * * vmail $PYTHON $INSTANCE/manage.py handle_mailbox_operations
# Generate DKIM keys (they will belong to the user running this job)
* * * * * root umask 077 && $PYTHON $INSTANCE/manage.py modo manage_dkim_keys
# Sessions table cleanup
0 0 * * * modoboa $PYTHON $INSTANCE/manage.py clearsessions
# Logs table cleanup
0 0 * * * modoboa $PYTHON $INSTANCE/manage.py cleanlogs
# DNSBL checks
*/30 * * * * modoboa $PYTHON $INSTANCE/manage.py modo check_mx
# Public API communication
0 * * * * modoboa $PYTHON $INSTANCE/manage.py communicate_with_public_api