Re: Question about sa-updates
Paul Schmehl skrev den 2024-06-22 07:44: It’s not clear to me from your answer. Does SA read rules in both places? it eveal first sa-update rules, then later host rules Or only in /etc/mail/spamassassin/? this is host rules, you define all global configs here, and it will never be overrided by sa-update add rules to userprefs.cf in same place as local.cf is, score userprefs rules with nearly zerro score, but not zerro 0, why this ? if done this way scores can be changed in ldap/sql pr user, even in $HOME./spamassassin/user-prefs more help, then i need more info :=)
Re: Question about sa-updates
On Sat, 22 Jun 2024, Paul Schmehl wrote: On Jun 22, 2024, at 12:28 AM, Kenneth Porter wrote: On 6/21/2024 8:56 PM, Paul Schmehl wrote: I scratched my head, then looked up the man page for sa-update on the web. Sure enough, that’s where the rules go. Is that where my local.cf file should be located? Right now it’s in /etc/mail/spamassassin. There’s a default local.cf file in /var/lib/….. /var/lib/spamassassin is where channels put their rules. /etc/mail/spamassassin is where the host admin puts her customizations. I like to use separate files for different policies, named after each effect I'm trying to get. SA will load anything there with a .cf extension. It’s not clear to me from your answer. Does SA read rules in both places? Or only in /etc/mail/spamassassin/? Reading the "man" page documentation for spamassassin, it lists several different directories that SA looks for its config files in and the order that it reads them from. The possible directories are distro and version specific so you need to read the docs for your specific instance. -- Dave Funk University of Iowa College of Engineering 319/335-5751 FAX: 319/384-05491256 Seamans Center, 103 S Capitol St. Sys_admin/Postmaster/cell_admin Iowa City, IA 52242-1527 #include Better is not better, 'standard' is better. B{
Re: Question about sa-updates
> On Jun 22, 2024, at 12:28 AM, Kenneth Porter wrote: > > On 6/21/2024 8:56 PM, Paul Schmehl wrote: >> I scratched my head, then looked up the man page for sa-update on the web. >> Sure enough, that’s where the rules go. Is that where my local.cf file >> should be located? Right now it’s in /etc/mail/spamassassin. There’s a >> default local.cf file in /var/lib/….. > > /var/lib/spamassassin is where channels put their rules. > /etc/mail/spamassassin is where the host admin puts her customizations. I > like to use separate files for different policies, named after each effect > I'm trying to get. SA will load anything there with a .cf extension. > > It’s not clear to me from your answer. Does SA read rules in both places? Or > only in /etc/mail/spamassassin/? Paul Schmehl paul.schm...@gmail.com
Re: Question about sa-updates
On 6/21/2024 8:56 PM, Paul Schmehl wrote: I scratched my head, then looked up the man page for sa-update on the web. Sure enough, that’s where the rules go. Is that where my local.cf file should be located? Right now it’s in /etc/mail/spamassassin. There’s a default local.cf file in /var/lib/….. /var/lib/spamassassin is where channels put their rules. /etc/mail/spamassassin is where the host admin puts her customizations. I like to use separate files for different policies, named after each effect I'm trying to get. SA will load anything there with a .cf extension.
Question about sa-updates
I just ran sa-updates. Then I looked in /etc/mail/spamassassin to see if the rules had been updated, and none of them had today’s date on them So, I downloaded the tar file, unzipped it, and searched for one of the files. I found them in /var/lib/spamassassin/…. I scratched my head, then looked up the man page for sa-update on the web. Sure enough, that’s where the rules go. Is that where my local.cf file should be located? Right now it’s in /etc/mail/spamassassin. There’s a default local.cf file in /var/lib/….. Paul Schmehl paul.schm...@gmail.com