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: Rules not working
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 procmail do effectively daemonize spamassassin. You also might check if spamc is run with a -u flag (or equivalent - see "man spamc" or "spamc --help"). If it is recheck that the a.cf file can be read as that user. You might be being blocked at the /etc/mail directory or /etc/mail/spamassassin directory with a lack of an x flag for the declared spamc username. (ALWAYS, repeat ALWAYS, test spamassassin as a user not as root. That way permissions don't foul you up.) I realize you've checked permissions. I'm just thinking about how I manage to find things by just going over and over the same ground trying to look deeper each time. {^_^} On 2013/09/08 18:36, Raymond Jette wrote: > 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,MISSING_SUBJECT,NO_RECEIVED,NO_RELAYS,match_all > Sep 8 21:31:55.091 [10288] dbg: rules: ran body rule match_all ======> got > hit: "Rodney Martha Clephane Adkins commented on your status." > Sep 8 21:31:56.061 [10288] dbg: check: > tests=DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,match_all > Sep 8 21:31:56.064 [10288] info: spamd: result: . 0 - > DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,match_all > > scantime=1.4,size=11207,user=nobody,uid=99,required_score=6.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=45086,mid=<b49d486c08d3c328fc670ccaf5e33...@graph.facebook.com>,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 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 as all the other usual flags > and values. > > Run tests through it using regular mail and a manual "spamc". > > Stop the -D spamd. > > Restart the normal spamd. > > This should only take a minute or two. > > {^_^} > > > On 2013/09/08 18:09, Raymond Jette wrote: >> 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: 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 Jette wrote: >>> 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 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 /.*/ >>>> score test_match_all -0.01 >>>> >>>> Rules only work if they are in local.cf. If I run the following command: >>>> >>>> echo | spamassassin --debug >>>> >>>> I can see my custom rules that are in files other than local.cf get >>>> called. Why would they work this way but never get called when spamd is >>>> called from exim? >>>> >>>> Thanks for any help you can provide, >>>> Ray >>> >>> Did you restart spamassassin or the tool that uses spamassassin itself? >>> >>> {^_^} >>> >>> >> >