On 24 Jan 2019, at 8:44, LegendGamesMaster wrote:

Reindl - thanks.

Note that anything you get from H. Reindl in reply to messages on this mailing list is not actually posted to the mailing list.

just checked and yes, i'm updated.
however...

i'm confused as to what rules are being used in preference...

The files in /var/lib/spamassassin/3.0014000/ are clearly todays update,

I hope that's a typo, because it can't be correct.

The name of that directory should be 3.004002 if you're running the latest release of SA (v3.4.2.) It could be 3.004001 if you're one release back.

except for a directory sought_rules_yerp_org which is 18/10/2018

You should 'rm -rf sought_rules_yerp_org' because those rules are obsolete and unsafe. The sa-update channel for them will not work with v3.4.2 because the abandoned channel does not include the required hash file or a valid signature file.

I note that I have a load of files in /usr/share/spamassassin that are all
dated 18-10-2018

Which is probably when you installed SA, implying that this SHOULD be v3.4.2.

However, there normally won't be a "load of files" there, just 3. SA has not put *.cf or *.pre files in that directory since v3.1.x. This could be an anomaly in how your version of SA was built or it could be a leftover from an ancient version that was never cleaned up and somehow got touched recently. If those files are part of the SA distribution, you can find which version they are for by looking for a 'require_version' line in them, generally near the top of the file.

my updated conf.cf with "report all" lives in /usr/share/spamassassin and is
seemingly working correctly.

That's a minor oddity.

Normally, the local config file lives in /etc/mail/spamassassin/ and is named local.cf. You should not add, remove, or change files in /usr/share/spamassassin, because your package manager (on CentOS that would be yum & rpm) sees that directory as belonging to the SA package and may do bad things when updating.

Generally speaking, anything under /usr except for /usr/local/ should be left alone if you use a distro-standard package manager and want to avoid a battle with it that you will ultimately lose.

so.. are the files in /usr/…. running in preference to the files in /var/…
and if so, how do I ensure the latest ones are used?

It's complicated...

SA uses *MULTIPLE* directories for config and rules to allow for layers of overrides. See https://svn.apache.org/repos/asf/spamassassin/branches/3.4/README for details.

You PROBABLY should merge any settings in your "conf.cf" into whatever /etc/mail/spamassassin/local.cf is already there and remove /usr/share/spamassassin/*.{cf,pre}.

Reply via email to