Re: Rules not working

2013-09-08 Thread jdow
Note - your parameters may be different. The "ps -AF" command gives the right values. {^_-} On 2013/09/08 19:16, Raymond Jette wrote: Thank you. I will re-run it with the correct parameters. From: jdow [j...@earthlink.net] Sent: Sunday, September 08, 20

Re: Rules not working

2013-09-08 Thread jdow
I mention the potential alternate path because it may go through spamd again but skipped when prior markups indicate it's already been scored. I remember this tripping some people up in the distant past. {^_^} On 2013/09/08 19:26, Raymond Jette wrote: It is going through spamd I can see that.

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 12960

RE: Rules not working

2013-09-08 Thread Raymond Jette
Thanks for the information. When running it this way everything works. I'm not sure why it is not working with normal mail flow. From: jdow [j...@earthlink.net] Sent: Sunday, September 08, 2013 10:10 PM To: users@spamassassin.apache.org Subject: Re: Rules

RE: Rules not working

2013-09-08 Thread Raymond Jette
It is going through spamd I can see 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: Ru

Re: Rules not working

2013-09-08 Thread jdow
That offers a REALLY strong hint that you're not really going the spamc/spamd route from exim. As it happens I use bog standard sendmail. Sendmail calls procmail. Procmail calls spamassassin via spamc. Procmail does NOT daemonize spamassassin. Many other tools that perform similar functions to pro

Re: Rules not working

2013-09-08 Thread jdow
> 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 wrote: I'm sorry but I dont know how to find what other flags I should be using. spamd is started from systemd

Re: Rules not working

2013-09-08 Thread jdow
One would then expect the contents of a.cf to be read. Note that it's historically customary to preceed the basic filename with a two digit number and an underscore. The rules are read in alphabetical order, which translates to numerical order for the numbered rules. "local.cf" is read first of a

RE: Rules not working

2013-09-08 Thread Raymond Jette
The following lines also show a test rule hitting: [root@mx1 rjette]# cat mailflow.txt | grep match_ Sep 8 21:31:47.662 [10285] dbg: rules: ran body rule match_all ==> got hit: "negative match" Sep 8 21:31:48.116 [10285] dbg: check: tests=DKIM_ADSP_NXDOMAIN,MISSING_DATE,MISSING_HEADERS,MI

RE: Rules not working

2013-09-08 Thread Raymond Jette
I stoped spamd # systemctl stop spamassassin.service Then I ran in debug mode # echo | spamd -D > /root/spamdDiag 2>&1 The following line shows a 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. ___

RE: Rules not working

2013-09-08 Thread Raymond Jette
I'm sorry but I dont know how to find what other flags I should be using. spamd is started from systemd in /usr/lib/systemd/system/spamassassin.service This file contains the following: [Unit] Description=Spamassassin daemon After=syslog.target network.target [Service] Type=forking PIDFile=/v

Re: Rules not working

2013-09-08 Thread jdow
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 interruptions to mail flow I'd test it this way: stop spamd manually start spamd with the -D flag as well

RE: Rules not working

2013-09-08 Thread Raymond Jette
Yes. The permissions are correct. 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:

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 Sun

Re: Rules not working

2013-09-08 Thread jdow
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 Jette wrote: Yes.

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 1

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

Rules not working

2013-09-08 Thread Raymond Jette
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 only work if they are in local.cf. If I run th