Bowie Bailey <bowie_bai...@buc.com> writes:

> On 10/22/2018 11:08 AM, Cecil Westerhof wrote:
>>
>> I should have looked into the logs. :'-(
>>
>> When I run it again I see in the logging:
>>     Oct 22 16:47:15 munus.decebal.nl spamd[17102]: spamd: connection from 
>> localhost [::1]:58764 to port 783, fd 5
>>     Oct 22 16:47:15 munus.decebal.nl spamd[17102]: spamd: setuid to imaps 
>> succeeded
>>     Oct 22 16:47:15 munus.decebal.nl spamd[17102]: spamd: service
>> unavailable: TELL commands are not enabled, set the --allow-tell
>> switch.
>>     Oct 22 16:47:15 munus.decebal.nl spamd[17101]: prefork: child states: II
>>
>> It is a bit strange. I had the same problem 1½ year ago. I solved it
>> by adding --allow-tell switch in the service file. Now it contained:
>>     ExecStart=/usr/sbin/spamd -d --pidfile=/var/run/spamd.pid $OPTIONS
>>
>> I do not see the OPTIONS defined.
>>
>> I substituted --allow-tell for $OPTIONS and restarted the service. Now
>> it works again. But why the service file has been changed …
>
> The OPTIONS variable in the service file usually comes from reading a file in
> /etc/sysconfig.  Normally, you would edit that file to adjust the options 
> used in the
> service file.

That is not on my system.


> Take a look at the service file to see which other files it is reading and 
> then look
> there for the definition of OPTIONS.  Simply removing OPTIONS may change 
> other spamd
> options that were set previously.

There is the following line:
    EnvironmentFile=-/etc/default/spamassassin

And in that file I see:
    OPTIONS="--create-prefs --max-children 5 --helper-home-dir"

So I changed this to:
    OPTIONS="--allow-tell --create-prefs --max-children 5 --helper-home-dir"

And put OPTIONS back.


What I find a bit strange is that I see in the environment file:
    PIDFILE="/var/run/spamd.pid"

I see in the service file:
    PIDFile=/var/run/spamd.pid

And with the spamd call the pidfile is again set. Two could be removed
in my opinion, but that is something for another day.


Thanks for the correction.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

Reply via email to