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     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 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=/var/run/spamd.pid
> EnvironmentFile=-/etc/sysconfig/spamassassin
> ExecStartPre=-/sbin/portrelease spamd
> ExecStart=/usr/bin/spamd --pidfile /var/run/spamd.pid $SPAMDOPTIONS
> StandardOutput=syslog
> StandardError=syslog
> Restart=always
>
> [Install]
> WantedBy=multi-user.target
>
>
> Should I test by calling 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 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?
>>>
>>> {^_^}
>>>
>>>
>>
>

Reply via email to