Not unless they are somewhere other than /etc/cron.~...
I don't see any indication that zimbra uses anything other than the stock cron process...
Dave Redmore
Not unless they are somewhere other than /etc/cron.~...
I don't see any indication that zimbra uses anything other than the stock cron process...
Dave Redmore
Sorry, still learning -
/opt/zimbra/zimbramon/crontabs/crontab.mta has the following line -
0 23 * * * /opt/zimbra/bin/zmtrainsa >> opt/zimbra/log/spamtrain.log 2>&1
/opt/zimbra/log/spamtrain.log doesn't appear to be scanning the /Junk folders of users though - unlike when I manually run it on a specific users folder...
dave
If you do a 'crontab -l' as the zimbra user you should see something like this:
Does it contain those entries? If not, do those scripts exist (in ~/libexec I think)?# ZIMBRASTART -- DO NOT EDIT ANYTHING BETWEEN THIS LINE AND ZIMBRAEND
#
# Log pruning
#
30 2 * * * find /opt/zimbra/log/ -type f -name \*log\* -mtime +8 -exec rm {} \; > /dev/null 2>&1
#
# Status logging
#
*/2 * * * * /opt/zimbra/libexec/zmstatuslog
*/10 * * * * /opt/zimbra/libexec/zmdisklog
#
# Backups
#
# BACKUP BEGIN
# BACKUP END
#
# crontab.ldap
#
#
# Spam training cleanup
#
45 23 * * * /opt/zimbra/bin/zmtrainsa --cleanup >> /opt/zimbra/log/spamtrain.log 2>&1
#
# crontab.store
#
# Log pruning
#
30 2 * * * find /opt/zimbra/tomcat/logs/ -type f -name \*log\* -mtime +8 -exec rm {} \; > /dev/null 2>&1
0 2 * * * /opt/zimbra/libexec/zmroll_catalina > /dev/null 2>&1
#
# Purge messages
#
0 3 * * * /opt/zimbra/libexec/zmpurgemessages > /dev/null 2>&1
#
# Clean up the quarantine dir
#
0 1 * * * find /opt/zimbra/amavisd/quarantine -type f -mtime +7 -exec rm -f {} \; > /dev/null 2>&1
#
# Table maintenance
#
30 1 * * * /opt/zimbra/libexec/zmmaintaintables >> /dev/null 2>&1
#
# crontab.logger
#
# process logs
#
00,10,20,30,40,50 * * * * /opt/zimbra/libexec/zmlogprocess > /tmp/logprocess.out 2>&1
#
# Graph generation
#
10 * * * * /opt/zimbra/libexec/zmgengraphs >> /tmp/gengraphs.out 2>&1
#
# Daily reports
#
10 1 * * * /opt/zimbra/libexec/zmdailyreport -m
#
# crontab.mta
#
#
# Queue logging
#
0,10,20,30,40,50 * * * * /opt/zimbra/libexec/zmqueuelog
#
# Spam training
#
0 23 * * * /opt/zimbra/bin/zmtrainsa >> /opt/zimbra/log/spamtrain.log 2>&1
#
# Dspam cleanup
#
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>&1
8 4 * * * /opt/zimbra/dspam/bin/dspam_logrotate -a 60 /opt/zimbra/dspam/var/dspam/system.log
8 8 * * * /opt/zimbra/dspam/bin/dspam_logrotate -a 60 /opt/zimbra/dspam/var/dspam/data/z/i/zimbra/zimbra.log
#
# Spam Bayes auto-expiry
#
20 23 * * * /opt/zimbra/libexec/sa-learn --force-expire --sync > /dev/null 2>&1
#
# Clean up amavisd/tmp
#
15 5,20 * * * find /opt/zimbra/amavisd/tmp -maxdepth 1 -type d -name 'amavis-*' -mtime +1 -exec rm -rf {} \; > /dev/null 2>&1
# ZIMBRAEND -- DO NOT EDIT ANYTHING BETWEEN THIS LINE AND ZIMBRASTART
Regards
Bill
Yes - please see my second post just before you posted...
Your too quick!![]()
zmtrainsa doesn't clean out your user's junk folder, that's done by the zmpurgemessages script, and it does so based on the junk mail lifetime setting.
Default lifetime is 30 days - is there junk older than 30 days in your user's folder?
Does the zmpurgemessages run, and does it run without errors?
I changed the junkmail lifetime to 1 day - I'll check it tomorrow and see if it runs correctly.
Just to clarify though - does zmtrainsa scan all users /Junk folders?
dave
There are currently 1 users browsing this thread. (0 members and 1 guests)