|
|
| ZCS Administrator's Guide, Open Source Edition 4.5 Rev 2 11/07 |
•
•
• 0 through 7 (0 or 7 is Sunday, 1 is Monday, etc., or use names)
• This is the complete sequence of commands to be executed for the jobWhen an asterisk (*) is displayed, it means all possible values for the field. For example, an asterisk in the hour time field would be equivalent to "every hour”The log pruning deletes logs from /opt/zimbra/log that are over eight days old. The job runs at 2:30 a.m.zmstatuslog calls zmcontrol status and outputs it data into syslog.console status up-to-date. zmdisklog inserts the disk utilization of local disks into syslog so that logger can update the administration console.
Status logging job runs every 2 minutes and the disk log runs every 10 minutes.The log pruning deletes logs from /opt/zimbra/mailboxd/logs that are over eight days old. The job runs at 2:30 a.m.Messages older then the timeout policy lifetime configured for email messages in the inbox, trash and junk folders are deleted. These messages are purged at 3:00 a.m. daily.Mail identified with a virus or spam are not dropped immediately, but are put in quarantine. Messages older than seven days are deleted at 1:00 a.m daily.The ANALYZE TABLE statement is run on all tables in the database to update the statistics for all indexes. This is done to make sure that the MySQL query optimizer picks the correct indexes when executing SQL statements. This script is run 1:30 a.m.on Sunday.zmdbintegrityreport is run weekly to check the MySQL database for corruption and will notify the administrator if any corruption is found. When this is run, it may consume a significant amount of I/O. If you find that it is an issue, you may want to change the frequency with which zmdbintegrityreport is run by editing the Zimbra crontab entry. This report runs at 11:00 p.m. Sundays.A script is executed to see if mysqld process is running to detect cases where corruption is likely to be caused. An email is generated if it finds more than 1 mysqld process running. The script runs every 5 minutes.zmlogprocess takes the raw_data in the logger data and aggregates andoptimizes the database tables and other maintenance tasks for logger db. The logger database data is updated every 10 minutes.When the logger package is installed, a daily mail report is automatically scheduled in the crontab. The report runs every morning at 1:10. and is sent to the administrator’s email address.The zmqueue report status via the syslog is reviewed. This is logger data. The status is updated every 10 minutes.The zmtrainsa script is enabled to feed mail that has been classified as spam or a non-spam to the SpamAssassin application. SpamAssassin learns what signs are likely to mean spam or ham. The job runs at 11:00 p.m.
30 2 * * * find /opt/zimbra/mailboxd/logs/ -type f -name \*log\* -mtime +8 -exec
rm {} \; > /dev/null 2>&1 #0 1 * * * find /opt/zimbra/dspam/var/dspam/data/z/i/zimbra/zimbra.sig/ -type f
-name \*sig -mtime +7 -exec rm {} \; > /dev/null 2>&120 23 * * * /opt/zimbra/libexec/sa-learn -p /opt/zimbra/conf/salocal.cf --dbpath
/opt/zimbra/amavisd/.spamassassin --siteconfigpath /opt/zimbra/conf/spamassassi n --force-expire --sync > /dev/null 2>&115 5,20 * * * find /opt/zimbra/amavisd/tmp -maxdepth 1 -type d -name 'amavis-*'
-mtime +1 -exec rm -rf {} \; > /dev/null 2>&1
|
|
| ZCS Administrator's Guide, Open Source Edition 4.5 Rev 2 11/07 |