| 1 | MAILTO=suwako |
| 2 | * * * * * echo "Test" > /tmp/cron_test.txt |
| 3 | |
| 4 | 30 3 * * * /bin/bash /var/vmail/backup/backup_mysql.sh |
| 5 | |
| 6 | # iRedAPD: Clean up expired tracking records hourly. |
| 7 | 1 * * * * python3 /opt/iredapd/tools/cleanup_db.py >/dev/null |
| 8 | |
| 9 | # iRedAPD: Convert SPF DNS record of specified domain names to IP |
| 10 | # addresses/networks hourly. |
| 11 | 2 * * * * python3 /opt/iredapd/tools/spf_to_greylist_whitelists.py >/dev/null |
| 12 | |
| 13 | # iRedMail: Cleanup Amavisd database |
| 14 | 1 2 * * * python3 /opt/www/iredadmin/tools/cleanup_amavisd_db.py >/dev/null |
| 15 | |
| 16 | # iRedAdmin: Clean up sql database. |
| 17 | 1 * * * * python3 /opt/www/iredadmin/tools/cleanup_db.py >/dev/null 2>&1 |
| 18 | |
| 19 | # iRedAdmin: Delete mailboxes on file system which belong to removed accounts. |
| 20 | 1 * * * * python3 /opt/www/iredadmin/tools/delete_mailboxes.py |
| 21 | # iRedMail: Cleanup Roundcube SQL database |
| 22 | 2 2 * * * /usr/bin/php /opt/www/roundcubemail/bin/cleandb.sh >/dev/null |
| 23 | |
| 24 | # iRedMail: Cleanup Roundcube temporary files under 'temp/' directory |
| 25 | 2 2 * * * /usr/bin/php /opt/www/roundcubemail/bin/gc.sh >/dev/null |
| 26 | # iRedMail: Backup SOGo data databases on 04:01AM |
| 27 | 1 4 * * * /bin/bash /var/vmail/backup/backup_sogo.sh |
| 28 | |
| 29 | # Fail2ban: Unban IP addresses pending for removal (stored in SQL db). |
| 30 | * * * * * /bin/bash /usr/local/bin/fail2ban_banned_db unban_db |
| 31 | |
| 32 | 0 0 * * * /root/sync-vmail-backup.sh |
| 33 | 0 6 * * * /root/sync-vmail-backup.sh |
| 34 | 0 12 * * * /root/sync-vmail-backup.sh |
| 35 | 0 18 * * * /root/sync-vmail-backup.sh |
| 36 | 0 2 * * 0 /bin/sh /root/update_certs.sh |
| 37 | 0 8 * * 2 /bin/sh /root/update_pkgs.sh |
| 38 | 0 8 * * 5 /bin/sh /root/update_pkgs.sh |