Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Junk box

  1. #11
    davespigot is offline Intermediate Member
    Join Date
    Sep 2006
    Posts
    16
    Rep Power
    8

    Default

    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

  2. #12
    davespigot is offline Intermediate Member
    Join Date
    Sep 2006
    Posts
    16
    Rep Power
    8

    Default

    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

  3. #13
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,470
    Rep Power
    56

    Default

    If you do a 'crontab -l' as the zimbra user you should see something like this:
    # 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
    Does it contain those entries? If not, do those scripts exist (in ~/libexec I think)?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  4. #14
    davespigot is offline Intermediate Member
    Join Date
    Sep 2006
    Posts
    16
    Rep Power
    8

    Default

    Yes - please see my second post just before you posted...

    Your too quick!

  5. #15
    marcmac is offline Expert Member
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    13

    Default

    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?
    Bugzilla - Wiki - Downloads - Before posting... Search!

  6. #16
    davespigot is offline Intermediate Member
    Join Date
    Sep 2006
    Posts
    16
    Rep Power
    8

    Default

    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

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Spam training. Junk or Junk E-mail folders?
    By azilber in forum Zimbra Connector for Outlook
    Replies: 0
    Last Post: 02-15-2007, 01:24 PM
  2. Spam training and Junk folder behavior
    By flyerguybham in forum Administrators
    Replies: 9
    Last Post: 02-14-2007, 12:09 PM
  3. Restore to a new(different) server
    By phxmark in forum Administrators
    Replies: 4
    Last Post: 12-05-2006, 11:13 AM
  4. Junk folder and IMAP
    By richard-hdd in forum Installation
    Replies: 3
    Last Post: 09-17-2006, 02:46 AM
  5. Junk Box Deletion
    By kollross in forum Administrators
    Replies: 7
    Last Post: 07-06-2006, 09:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •