Junk box

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
davespigot
Posts: 19
Joined: Fri Sep 12, 2014 10:16 pm

Junk box

Postby davespigot » Thu Feb 22, 2007 11:47 am

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


davespigot
Posts: 19
Joined: Fri Sep 12, 2014 10:16 pm

Junk box

Postby davespigot » Thu Feb 22, 2007 12:04 pm

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
phoenix
Ambassador
Ambassador
Posts: 26522
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Junk box

Postby phoenix » Thu Feb 22, 2007 12:07 pm

If you do a 'crontab -l' as the zimbra user you should see something like this:

[QUOTE]# 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

[/QUOTE]Does it contain those entries? If not, do those scripts exist (in ~/libexec I think)?
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
davespigot
Posts: 19
Joined: Fri Sep 12, 2014 10:16 pm

Junk box

Postby davespigot » Thu Feb 22, 2007 12:10 pm

Yes - please see my second post just before you posted...
Your too quick! :)
marcmac
Elite member
Elite member
Posts: 2091
Joined: Fri Sep 12, 2014 9:53 pm

Junk box

Postby marcmac » Thu Feb 22, 2007 1:45 pm

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?
davespigot
Posts: 19
Joined: Fri Sep 12, 2014 10:16 pm

Junk box

Postby davespigot » Thu Feb 22, 2007 2:03 pm

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

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 6 guests