HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   SpamSnake 10.10 issue - Quarantine reports (http://www.howtoforge.com/forums/showthread.php?t=50665)

colskinet 24th December 2010 15:01

SpamSnake 10.10 issue - Quarantine reports
 
Hi All

I've got my SpamSnake successfully up and running but have a small issue with a cron job which runs.

Code:

# m h  dom mon dow  command
37      5 * * *  /opt/MailScanner/bin/update_phishing_sites
07      * * * *  /opt/MailScanner/bin/update_bad_phishing_sites
58    23 * * * /opt/MailScanner/bin/clean.quarantine
42      * * * *  /opt/MailScanner/bin/update_virus_scanners
3,23,43 * * * *  /opt/MailScanner/bin/check_mailscanner &> /dev/null

30 01 * * * /usr/bin/sa-learn --force-expire --sync -p /opt/MailScanner/etc/spam.assassin.prefs.conf

@daily  manage.py cleanquarantine #Clean quarantine
* * * * 5  manage.py sendquarantinereports #Send quarantine reports
@monthly manage.py  dbclean #Clean maillog
@weekly  manage.py updatesarules #Update spamassassin rules
@daily  manage.py sendpdfreports #Send PDF Reports

@weekly /usr/sbin/fuzzy-cleanmysql #FuzzyOcr DB cleaner

00 04 * * * /usr/bin/clamav-unofficial-sigs.sh -c /etc/clamav-unofficial-sigs.conf &> /dev/null

@monthly /usr/sbin/update-iana &> /dev/null #Update firehol reserved ips

Thats the output of crontab -l

Up until yesterday I was receiving scheduled quarantine reports but I now am getting quarantine reports sent to me every minute! I woke up this morning and had 1400 odd email reports!

Any ideas how to stop this? Have tried the faithful reboot and that's made no difference.

Regards
Colin

topdog 24th December 2010 16:27

[QUOTE=colskinet;247470]
Code:

* * * * 5  manage.py sendquarantinereports #Send quarantine reports
Thats your problem, that cronjob is incorrectly setup.

Use @daily instead and restart cron.

colskinet 24th December 2010 16:41

[QUOTE=topdog;247473]
Quote:

Originally Posted by colskinet (Post 247470)
Code:

* * * * 5  manage.py sendquarantinereports #Send quarantine reports
Thats your problem, that cronjob is incorrectly setup.

Use @daily instead and restart cron.

Thanks topdog, have just updated my crontab so hopefully this will cure it. Not sure why it's just started doing this though as it was set to * * * * 5 in the tutorial that I copied and pasted from. :)

Regards
Colin

topdog 25th December 2010 20:17

Quote:

Originally Posted by colskinet (Post 247474)
Not sure why it's just started doing this though as it was set to * * * * 5 in the tutorial that I copied and pasted from. :)

That cron statement means send every second every min every hour, every month on a friday.


All times are GMT +2. The time now is 05:58.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.