sa-update cron error

bobsthename

Verified User
Joined
Sep 23, 2009
Messages
66
Location
NZ
Hello,
I have sa-update enabled in custom build.
How do I know if the cron is running? because on one server I get the following emailed to me everyday:-

Subject Cron <root@server> /usr/share/spamassassin/sa-update.cron 2>&1 | tee -a /var/log/sa-update.log
From (Cron Daemon)
/bin/sh: /usr/share/spamassassin/sa-update.cron: No such file or directory

However I have checked the other 2 DA servers I have and they don't have the file in this location either, they both have sa-update set in custombuild as well but I don't get errors from them.

So I am wondering if it has been running at all.

I thought custombuild delt with this automatically, or do I need to add the cron manually myself?

Thanks
 
The email points to a wrong location, but I don't know why.
There is no file called sa-update.cron it's called sa-update (without .cron behind it) and it's present in /etc/cron.weekly and not in /usr/share/spamassassin.
So it seems something is wrong, unfortunately I don't know where.
 
Hello,

Your script to update SA rules does not look as one installed by Custombuild.


The script /usr/share/spamassassin/sa-update.cron is a part of RPM package with name spamassassin. So you need to remove the RPM package and install it with custombuild.
 
I have installed Spamassassin using CustomBuild 2.0 and I get the same error in my mail. I tried uninstalling the package using RPM:

# rpm -e spamassassin
warning: file /usr/share/spamassassin/sa-update.cron: remove failed: No such file or directory
warning: file /usr/share/spamassassin/regression_tests.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/local.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/STATISTICS-set3-72_scores.cf.txt: remove failed: No such file or directory
warning: file /usr/share/spamassassin/STATISTICS-set2-72_scores.cf.txt: remove failed: No such file or directory
warning: file /usr/share/spamassassin/STATISTICS-set1-72_scores.cf.txt: remove failed: No such file or directory
warning: file /usr/share/spamassassin/STATISTICS-set0-72_scores.cf.txt: remove failed: No such file or directory
warning: file /usr/share/spamassassin/73_sandbox_manual_scores.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/72_scores.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/72_active.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/60_whitelist_subject.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/60_whitelist_spf.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/60_whitelist_dkim.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/60_whitelist.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/60_shortcircuit.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/60_awl.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/60_adsp_override_dkim.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/50_scores.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/30_text_pt_br.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/30_text_pl.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/30_text_nl.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/30_text_it.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/30_text_fr.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/30_text_de.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/25_uribl.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/25_textcat.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/25_spf.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/25_replace.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/25_razor2.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/25_pyzor.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/25_hashcash.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/25_dkim.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/25_dcc.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/25_asn.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/25_antivirus.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/25_accessdb.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/23_bayes.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/20_vbounce.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/20_uri_tests.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/20_ratware.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/20_porn.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/20_phrases.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/20_net_tests.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/20_meta_tests.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/20_mailspike.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/20_imageinfo.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/20_html_tests.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/20_head_tests.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/20_freemail_domains.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/20_freemail.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/20_fake_helo_tests.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/20_dynrdns.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/20_drugs.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/20_dnsbl_tests.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/20_compensate.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/20_body_tests.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/20_aux_tlds.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/20_advance_fee.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/10_hasbase.cf: remove failed: No such file or directory
warning: file /usr/share/spamassassin/10_default_prefs.cf: remove failed: No such file or directory

So it seems my SA was built not using RPM but I still get the error. Every night. For years now ;-)

Kind Regards,
Rogier
 
Back
Top