Re: Rules not working

2013-09-10 Thread Karsten Bräckelmann
On Mon, 2013-09-09 at 01:36 +, Raymond Jette wrote: > The following lines also show a test rule hitting: One important thing I noticed missing from this thread is any evidence that custom rules are not working. This is pretty important to get a better picture of your issue and environment. Ho

RE: Rules not working

2013-09-09 Thread Benny Pedersen
Raymond Jette skrev den 2013-09-09 16:24: I'm not sure why but my spamd is running as root (I will have to change this). if you can drop priveledges from non priveleges user then you definly knows something i dont know :) spamd runs as root, but execute as -u in commandline on spamc, you can

RE: Rules not working

2013-09-09 Thread Raymond Jette
Currently I'm using SElinux. I'll disable it and see what happens. -Original Message- From: Martin Gregorie [mailto:mar...@gregorie.org] Sent: Monday, September 09, 2013 11:28 AM To: users@spamassassin.apache.org Subject: Re: Rules not working On Mon, 2013-09-09 at 14:50 +000

Re: Rules not working

2013-09-09 Thread Martin Gregorie
ed. Martin > -Original Message-DecodeShortURLs > From: Martin Gregorie [mailto:mar...@gregorie.org] > Sent: Monday, September 09, 2013 7:35 AM > To: users@spamassassin.apache.org > Subject: Re: Rules not working > > The one relevant thing you haven't shown us is:

RE: Rules not working

2013-09-09 Thread Raymond Jette
his issue when running SA on Fedora linux? -Original Message- From: Martin Gregorie [mailto:mar...@gregorie.org] Sent: Monday, September 09, 2013 7:35 AM To: users@spamassassin.apache.org Subject: Re: Rules not working The one relevant thing you haven't shown us is: 1) which user

Re: Rules not working

2013-09-09 Thread Martin Gregorie
On Mon, 2013-09-09 at 14:24 +, Raymond Jette wrote: > Thanks for the reply. I'm not sure why but my spamd is running as > root (I will have to change this). > I run Fedora 18, so it also uses systemd rather than the old SysV init. By default my systemd configuration runs spamd as root. I don't

RE: Rules not working

2013-09-09 Thread Raymond Jette
: Monday, September 09, 2013 3:33 AM To: users@spamassassin.apache.org Subject: Re: Rules not working Dave Funk skrev den 2013-09-09 02:55: > File system permissions issues? Are the new rules files readable by > the "exim" user? spamd ? its like calling dovecot-lmtp with inet por

RE: Rules not working

2013-09-09 Thread Raymond Jette
When I run exim in debug rules my custom cf files are never added and the rules never hit. Thanks. -Original Message- From: John Horne [mailto:john.ho...@plymouth.ac.uk] Sent: Monday, September 09, 2013 5:56 AM To: SpamAssassin Subject: Re: Rules not working On Mon, 2013-09-09 at 02

RE: Rules not working

2013-09-09 Thread Raymond Jette
Yes. I am using selinux. -Original Message- From: Benny Pedersen [mailto:m...@junc.eu] Sent: Monday, September 09, 2013 3:40 AM To: users@spamassassin.apache.org Subject: RE: Rules not working Raymond Jette skrev den 2013-09-09 03:09: > Yes. The permissions are correct. Yes,

RE: Rules not working

2013-09-09 Thread Raymond Jette
mailto:mar...@gregorie.org] Sent: Monday, September 09, 2013 7:35 AM To: users@spamassassin.apache.org Subject: Re: Rules not working The one relevant thing you haven't shown us is: 1) which user you're running the debug test under. 2) which user spamd is running under on your pr

Re: Rules not working

2013-09-09 Thread Martin Gregorie
The one relevant thing you haven't shown us is: 1) which user you're running the debug test under. 2) which user spamd is running under on your production system when exim is using it. As jdow has said, the best way to see (2) is by running ps -ef | grep spamd from any user. If the two

Re: Rules not working

2013-09-09 Thread John Horne
On Mon, 2013-09-09 at 02:19 +, Raymond Jette wrote: > Thanks for the information. When running it this way everything > works. I'm not sure why it is not working with normal mail flow. > I don't think you mentioned which O/S you are using. However, you may (it depends on your O/S) find spamas

RE: Rules not working

2013-09-09 Thread Benny Pedersen
Raymond Jette skrev den 2013-09-09 03:09: Yes. The permissions are correct. Yes, the debug output shows that the files and rules were found and matched against the test message. selinux ?

RE: Rules not working

2013-09-09 Thread Benny Pedersen
Raymond Jette skrev den 2013-09-09 03:07: I checked the permissions. Everything is set correctly. Thanks for the reply. only your reply did not work, your mua did not cut quotes down check from same user that exim uses to call spamc ? or does exim have its own native spamc that talks to por

Re: Rules not working

2013-09-09 Thread Benny Pedersen
Dave Funk skrev den 2013-09-09 02:55: File system permissions issues? Are the new rules files readable by the "exim" user? spamd ? its like calling dovecot-lmtp with inet ports that does not listen ? eg unix socket using here spampd with postfix, no problem at all with permissions on spam

Re: Rules not working

2013-09-08 Thread jdow
ptember 08, 2013 10:08 PM To: users@spamassassin.apache.org Cc: Raymond Jette Subject: Re: Rules not working > ps -AF | grep spamd root 12960 1 0 67331 79068 1 04:10 ?00:00:09 /usr/bin/spamd -d -c -m5 -H -r /var/run/spamd.pid ... {^_^} On 2013/09/08 18:28, Raymond Jette wrot

Re: Rules not working

2013-09-08 Thread jdow
that. The -u option is not being used. Thanks for the help. I'm going to keep working at this. From: jdow [j...@earthlink.net] Sent: Sunday, September 08, 2013 10:19 PM To: users@spamassassin.apache.org Subject: Re: Rules not working That offer

RE: Rules not working

2013-09-08 Thread Raymond Jette
Thank you. I will re-run it with the correct parameters. From: jdow [j...@earthlink.net] Sent: Sunday, September 08, 2013 10:08 PM To: users@spamassassin.apache.org Cc: Raymond Jette Subject: Re: Rules not working > ps -AF | grep spamd root 12

RE: Rules not working

2013-09-08 Thread Raymond Jette
custom test file I created being read in > > Sep 8 21:31:45.423 [10285] dbg: config: read file /etc/mail/spamassassin/a.cf > > Thanks. > > From: jdow [j...@earthlink.net] > Sent: Sunday, September 08, 2013 9:20 PM > To: users@spamassas

RE: Rules not working

2013-09-08 Thread Raymond Jette
but not on real mail. Any ideas? > ____ > From: jdow [j...@earthlink.net] > Sent: Sunday, September 08, 2013 9:20 PM > To: users@spamassassin.apache.org > Subject: Re: Rules not working > > Have you generated said debug output by running sp

Re: Rules not working

2013-09-08 Thread jdow
@earthlink.net] Sent: Sunday, September 08, 2013 9:20 PM To: users@spamassassin.apache.org Subject: Re: Rules not working Have you generated said debug output by running spamd with the -D flag? That is the debug output that matters. Also run spamassassin -D as a bog standard user rather than root. To minimize inte

Re: Rules not working

2013-09-08 Thread jdow
the help. From: jdow [j...@earthlink.net] Sent: Sunday, September 08, 2013 9:20 PM To: users@spamassassin.apache.org Subject: Re: Rules not working Have you generated said debug output by running spamd with the -D flag? That is the debug output that matters. Also run spamassassin -D as a bog

Re: Rules not working

2013-09-08 Thread jdow
5.423 [10285] dbg: config: read file /etc/mail/spamassassin/a.cf Thanks. From: jdow [j...@earthlink.net] Sent: Sunday, September 08, 2013 9:20 PM To: users@spamassassin.apache.org Subject: Re: Rules not working Have you generated said debug output by runni

RE: Rules not working

2013-09-08 Thread Raymond Jette
rport=45086,mid=,autolearn=unavailable It appears to hit here but not on real mail. Any ideas? From: jdow [j...@earthlink.net] Sent: Sunday, September 08, 2013 9:20 PM To: users@spamassassin.apache.org Subject: Re: Rules not working Have you generated sa

RE: Rules not working

2013-09-08 Thread Raymond Jette
cf Thanks. From: jdow [j...@earthlink.net] Sent: Sunday, September 08, 2013 9:20 PM To: users@spamassassin.apache.org Subject: Re: Rules not working Have you generated said debug output by running spamd with the -D flag? That is the debug output that matters. Also run spamassa

RE: Rules not working

2013-09-08 Thread Raymond Jette
spamd like follows or something else: echo | spamd -D Thanks for the help. From: jdow [j...@earthlink.net] Sent: Sunday, September 08, 2013 9:20 PM To: users@spamassassin.apache.org Subject: Re: Rules not working Have you generated said debug output by ru

Re: Rules not working

2013-09-08 Thread jdow
Yes, the debug output shows that the files and rules were found and matched against the test message. From: jdow [j...@earthlink.net] Sent: Sunday, September 08, 2013 9:01 PM To: users@spamassassin.apache.org Subject: Re: Rules not working Did you set permiss

RE: Rules not working

2013-09-08 Thread Raymond Jette
: Rules not working Did you set permissions? (-rw-r--r--) Are there any signs in the debug output that the files were even found at all? Whatever it is that actually calls spamd or uses spamassassin internally may do something to direct it off into left field. {^_^} On 2013/09/08 17:23, Raymond

RE: Rules not working

2013-09-08 Thread Raymond Jette
I checked the permissions. Everything is set correctly. Thanks for the reply. From: Dave Funk [dbf...@engineering.uiowa.edu] Sent: Sunday, September 08, 2013 8:55 PM To: Raymond Jette Cc: users@spamassassin.apache.org Subject: Re: Rules not working On

Re: Rules not working

2013-09-08 Thread jdow
. I restarted everything. When this did not work I rebooted the server. This still did not help. From: jdow [j...@earthlink.net] Sent: Sunday, September 08, 2013 8:21 PM To: users@spamassassin.apache.org Subject: Re: Rules not working On 2013/09/08 16:55

Re: Rules not working

2013-09-08 Thread Dave Funk
On Sun, 8 Sep 2013, Raymond Jette wrote: When I add add custom rules to /etc/mail/spamassassin/local.cf the rules work as expected. If I create any *.cf file and put the rules in they do not work. My test rule is: body test_match_all /.*/ scoretest_match_all -0.01 Rules onl

RE: Rules not working

2013-09-08 Thread Raymond Jette
Yes. I restarted everything. When this did not work I rebooted the server. This still did not help. From: jdow [j...@earthlink.net] Sent: Sunday, September 08, 2013 8:21 PM To: users@spamassassin.apache.org Subject: Re: Rules not working On 2013/09/08

Re: Rules not working

2013-09-08 Thread jdow
On 2013/09/08 16:55, Raymond Jette wrote: When I add add custom rules to /etc/mail/spamassassin/local.cf the rules work as expected. If I create any *.cf file and put the rules in they do not work. My test rule is: body test_match_all /.*/ scoretest_match_all -0.01 Rules on