Re: bayes_toks location when running as a service

2019-11-23 Thread RW
On Sat, 23 Nov 2019 15:41:44 -0600 Jerry Malcolm wrote: > On 11/23/2019 3:24 PM, RW wrote: > > On Sat, 23 Nov 2019 13:07:02 -0600 > > In the latter case you start spamd with '-u spamd'. It typically > > starts as root and drops privileges after binding to the default > > port. If you don't need t

Re: bayes_toks location when running as a service

2019-11-23 Thread Jerry Malcolm
On 11/23/2019 3:24 PM, RW wrote: On Sat, 23 Nov 2019 13:07:02 -0600 Jerry Malcolm wrote: Bob & John Thanks so much for the info.  But as if I wasn't dazed & confused enough already, I have discovered a new variable to the whole thing.  I have set up a couple of sandbox EC2 instances just to

Re: Where is SA getting config info?

2019-11-23 Thread Matus UHLAR - fantomas
On 22.11.19 12:14, Jerry Malcolm wrote: I am trying to add bayes to SA.  I see in the docs that there is a use_bayes parm and the path parm.  I made the changes to /usr/share/spamassassin/local.cf. On 11/22/2019 12:25 PM, Matus UHLAR - fantomas wrote: the config files and rules are usually i

Re: bayes_toks location when running as a service

2019-11-23 Thread Jerry Malcolm
On 11/23/2019 3:00 PM, Bob D wrote: On 11/23/19 1:07 PM, Jerry Malcolm wrote: Bob & John Thanks so much for the info.  But as if I wasn't dazed & confused enough already, I have discovered a new variable to the whole thing.  I have set up a couple of sandbox EC2 instances just to play. 

Re: bayes_toks location when running as a service

2019-11-23 Thread RW
On Sat, 23 Nov 2019 13:07:02 -0600 Jerry Malcolm wrote: > Bob & John Thanks so much for the info.  But as if I wasn't dazed > & confused enough already, I have discovered a new variable to the > whole thing.  I have set up a couple of sandbox EC2 instances just to > play.  I didn't realize it

Re: Resolution: bayes_toks location when running as a service

2019-11-23 Thread Bob D
On 11/23/19 2:50 PM, Jerry Malcolm wrote: Ok, I made the following changes and got it to finally work (on Linux 2): 1) I created a user named spamd 2) I added  -u spamd  to  SPAMDOPTIONS in /etc/sysconfig/spamassassin  --- after doing this, no change... log said SA was still looking in the

Re: bayes_toks location when running as a service

2019-11-23 Thread Bob D
On 11/23/19 1:07 PM, Jerry Malcolm wrote: Bob & John Thanks so much for the info.  But as if I wasn't dazed & confused enough already, I have discovered a new variable to the whole thing.  I have set up a couple of sandbox EC2 instances just to play.  I didn't realize it at first, but one

Re: bayes_toks location when running as a service

2019-11-23 Thread Bob D
Yes, you are correct Martin. Jerry, your sandboxes are not equal for testing. How you got one systemd and another systemv is unknown. You should make sure they are equal for testing. According to Amazon: "The redhat-lsb package is available in the Amazon Linux AMI repositories, but it is not p

Resolution: bayes_toks location when running as a service

2019-11-23 Thread Jerry Malcolm
Ok, I made the following changes and got it to finally work (on Linux 2): 1) I created a user named spamd 2) I added  -u spamd  to  SPAMDOPTIONS in /etc/sysconfig/spamassassin  --- after doing this, no change... log said SA was still looking in the random /tmp file for bayes_*. 3) I added ba

Re: bayes_toks location when running as a service

2019-11-23 Thread Martin Gregorie
On Sat, 2019-11-23 at 13:07 -0600, Jerry Malcolm wrote: > Bob & John Thanks so much for the info. But as if I wasn't dazed > & confused enough already, I have discovered a new variable to the > whole thing. I have set up a couple of sandbox EC2 instances just to > play. I didn't realize it a

Re: bayes_toks location when running as a service

2019-11-23 Thread Jerry Malcolm
All righty... On 11/23/2019 1:37 PM, Bob D wrote: Jerry, Let's back up a bit. Let us see your distro via the command  lsb_release -a         bash: lsb_release: command not found  -- is that in a certain folder I need to cd to? Also the version via   uname -r         4.14.154-128.181.amzn2

Re: bayes_toks location when running as a service

2019-11-23 Thread Bob D
Jerry, Let's back up a bit. Let us see your distro via the command  lsb_release -a Also the version via   uname -r Additionally, how did you install spamassassin please ? On 11/23/19 1:07 PM, Jerry Malcolm wrote: Bob & John Thanks so much for the info.  But as if I wasn't dazed & conf

Re: bayes_toks location when running as a service

2019-11-23 Thread Jerry Malcolm
Bob & John Thanks so much for the info.  But as if I wasn't dazed & confused enough already, I have discovered a new variable to the whole thing.  I have set up a couple of sandbox EC2 instances just to play.  I didn't realize it at first, but one is AWS Linux 1 and the other is AWS Linux 2

Re: Where is SA getting config info?

2019-11-23 Thread Bob D
This may help, https://cwiki.apache.org/confluence/display/spamassassin/SiteWideBayesSetup On 11/23/19 10:25 AM, Jerry Malcolm wrote: Thank you for the information.  I apologize for taking the bait. It just totally blindsided me that anyone here would initiate such a vicious personal attack. 

Re: bayes_toks location when running as a service

2019-11-23 Thread John Hardin
On Sat, 23 Nov 2019, Jerry Malcolm wrote: -- But when I start up spamd as a service, the log says it now wants to find bayes_* in  /tmp/spamd-4551-init/.spamassassin. (and the 4-digit number changes each time I restart the service. What user is the service running spamd as? What is that user

Re: bayes_toks location when running as a service

2019-11-23 Thread Bob D
Hello Jerry, In a nut-shell; It generally takes root equivalent to initiate system services. Hence the su. The startup of the individual service usually handles changing the effective user to some definition defined in the individual setup files of the service providing it was written to allow

Re: Where is SA getting config info?

2019-11-23 Thread John Hardin
On Fri, 22 Nov 2019, Rick Macdougall wrote: For the good of your blood pressure, just ignore h.rei...@thelounge.net I've plonked every thing from him into /dev/null so long ago I can't remember when I did it. Why he's still allowed to post here is beyond me. He's not. But he does still rea

bayes_toks location when running as a service

2019-11-23 Thread Jerry Malcolm
Meanwhile, back at the ranch I still have the one outstanding question from before the 'interruption' I know it may be the unpardonable sin according to some to ask a question without having a PhD in Linux.  But after 30+ years in Windows and (yes) OS/2 design and  development for IBM,

Re: Where is SA getting config info?

2019-11-23 Thread Jerry Malcolm
Thank you for the information.  I apologize for taking the bait. It just totally blindsided me that anyone here would initiate such a vicious personal attack.  Feel free to delete the recent chain of responses from the users group. Jerry On 11/22/2019 8:48 PM, Ralph Seichter wrote: * Jerry M