![]() |
Getting sa-update running automatically
In order to get your spam under control (well in the right direction) you can run the sa-update command and keep your 'rules' up-to-date. I'll outline what I have been using and am happy with. This may be obvious for some but hopefully helpful for others.
First, sa-update needs to have two additional perl modules installed that are not needed required for spamassassin to function. These are LWP, Archive::Tar (Nov 2006 bug report). It was also mentioned that UserAgent.pm was not installed by default elsewhere in this forum. In order get all the required perl modules installed use the following command: Code:
apt-get install libwww-perl libarchive-tar-perl(I'll assume you know how to create and make executable the sh script) Code:
#!/bin/shOnce this is done jump into your crontab. Code:
crontab -eCode:
0 3 * * * /root/sa-updater &> /dev/nullCode:
0 3 * * * /home/admispconfig/ispconfig/tools/spamassassin/usr/bin/sa-update &> /dev/nullHope this is helpful. I'm running this with Ubuntu 6.06 (PPC and x86) I'd like feedback on how this performs in other environments. |
Nice one!
I'll give it a go on one of my servers that does still get a lot of spam |
Seems to run nicely. You have to change the permission though to make it executable:
Code:
chmod 750 /root/sa-updaterEdit: I'm running Ubuntu Edge Eft 6.10 |
I have found that running the update rules helps clean up the last bit of spam I get. The other prevention I use is zen.spamhaus.org. SPAM still gets through but nothing that has anyone commenting.
Hope you get good results as well. |
The script is working nice on my Debian Sarge server.
I'll add it tomorrow to my other two server. |
I just use the rules_du_jour script
http://sandgnat.com/rdj/rules_du_jour you have to tell it where your spamassassin rules folder is which I just do a simple PHP Code:
PHP Code:
|
update errors.
Hello, I followed the instructions and yet I am getting errors when I try and update.
error: no mirror data available for channel updates.spamassassin.org channel: MIRRORED.BY file location was not in DNS, channel failed Any help would be great. |
What happens when you run
Code:
/home/admispconfig/ispconfig/tools/spamassassin/usr/bin/sa-update |
Nice script
Thank you for that script i use it on testing server now with some specific changes and works ok :-) nice help against spam.
PS: Mandriva, i know mandriva again, there is stupid change in path ../usr/local/bin/.... |
When i run "/home/admispconfig/ispconfig/tools/spamassassin/usr/bin/sa-update" nothing happends.
Is there supposed to be some sort of confirmation? How can I check if the update was made? I added "23 4 */2 * * /home/admispconfig/ispconfig/tools/spamassassin/usr/bin/sa-update &> /dev/null" to a file and placed it in /etc/cron.daily would this work for updating? |
| All times are GMT +2. The time now is 20:50. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.