System is Fedora 26 and I'm using the spamassassin (and any support applications) supplied with the distribution/repositories.
I have sa-update running from /etc/cron.daily using the supplied script "/etc/cron.daily/sa-update.cron" which appears to be working as expected. In an attempt to improve processing speed I installed re2c, run sa-compile, and modified /etc/spamassassin/v320.pre to take advantage of the compiled rules.
This all appears to be working as expected...except sa-compile needs to be run whenever sa-update says there are new rules. I looked at the sa-update.cron file and in big bold letters it says "*** DO NOT MODIFY THIS FILE ***". I ignored the warning and expect my change to be overridden at some point and added the following:
# sa-compile # if [ -f /usr/bin/sa-compile ]; then /usr/bin/sa-compile fi # sa-compile #
at line 71, immediately after the logging messages and right before the script tests for and issues a restart via systemctl).
The questions I have are:
1) did I do a bad thing by ignoring the warning for the cron script? 2) did I modify the right file? or should I modify a template and move it to the cron directory? 3) is this the best way to perform the sa-compile, if not what is the preferred way?
Thanks, Jeff