Files
modoboa-installer/modoboa_installer/scripts/files/modoboa/crontab.tpl
2017-08-11 16:06:15 +02:00

34 lines
1.3 KiB
Smarty

#
# Modoboa specific cron jobs
#
PYTHON=%{venv_path}/bin/python
INSTANCE=%{instance_path}
# Operations on mailboxes
* * * * * %{dovecot_mailboxes_owner} $PYTHON $INSTANCE/manage.py handle_mailbox_operations
# Sessions table cleanup
0 0 * * * root $PYTHON $INSTANCE/manage.py clearsessions
# Logs table cleanup
0 0 * * * root $PYTHON $INSTANCE/manage.py cleanlogs
# Quarantine cleanup
%{amavis_enabled}0 0 * * * root $PYTHON $INSTANCE/manage.py qcleanup
# Notifications about pending release requests
%{amavis_enabled}0 12 * * * root $PYTHON $INSTANCE/manage.py amnotify --baseurl='http://%{hostname}'
# Logs parsing
*/5 * * * * root $PYTHON $INSTANCE/manage.py logparser &> /dev/null
0 * * * * root $PYTHON $INSTANCE/manage.py update_statistics
# Radicale rights file
%{radicale_enabled}*/2 * * * * root $PYTHON $INSTANCE/manage.py generate_rights
# DNSBL checks
*/30 * * * * root $PYTHON $INSTANCE/manage.py modo check_mx
# Public API communication
0 * * * * root $PYTHON $INSTANCE/manage.py communicate_with_public_api