Spamassassin and sa-update/sa-compile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux