[CentOS] Cron for spamassassin

Wed May 20 17:01:28 UTC 2009
Bob Hoffman <bob at bobhoffman.com>

Hi all,

Question: Do you run the cron.d for updating spamassassin that came with the
distro (centos 5.x)?

I tried doing it when it was first set up and it just kept failing.
Although set to run, neither sa-update logs nor cron logs show any activity
at all on this cron.
And thus I usually do it by hand, running sa-update -D on the command line
every week or so.

The cron.d/sa-update file is chmod 0600 and owned by root.
The contents are as was installed

--------------------------------
10 4 * * * root /usr/share/spamassassin/sa-update.cron 2>&1 | tee -a
/var/log/sa-update.log
--------------------------------



When running the cron manually from the command line, it says:

--------------------------------
/etc/cron.d/sa-update: line 9: 10: command not found
---------------------------------

And the cron log will say

-------------------------------
"May 18 18:56:01 mail crond[3919]: (*system*) BAD FILE MODE
(/etc/cron.d/sa-update)"
-------------------------------


All research online and in bugs only refer to an old syntax error that is no
longer in the code. I did find quite a few posts from people all over the
web that this was not working for them. Not one was fixed or resoved.

I tired making the cron 0755 but that did not change anything. I could find
no bug reports on this on either rhel or centos.

So, I was just thinking about making a crontab to run sa-update daily and
see if that works. I would like to use as intended though.

Has anyone experienced this problem, and has anyone figured out what is
wrong?

Thanks in advance.