I can not start spamd (spamassassin daemon)

I’m trying to set up email in my laptop in the same manner than my
desktop. One step is to start up the spamd daemon, but I can’t:


> minas-tirith:~ # rcspamd start
> Starting spamd                                                                       done
> minas-tirith:~ # child process [17127] exited or timed out without signaling production of a PID file: exit 255 at /usr/sbin/spamd line 2589.
>
> minas-tirith:~ #

The source code lines mentioned are those that print the error message,
not the ones that produce the error. Nothing informative there.


The mail log produces these entries:


<2.6> 2012-12-16 14:16:09 minas-tirith spamd 17124 - - logger: removing stderr method
<2.4> 2012-12-16 14:16:09 minas-tirith spamd 17127 - - config: could not find site rules directory
<2.3> 2012-12-16 14:16:10 minas-tirith spamd 17127 - - check: no loaded plugin implements ‘check_main’: cannot scan!
<2.3> 2012-12-16 14:16:10 minas-tirith spamd 17127 - - Check the necessary ‘.pre’ files are in the config directory.
<2.3> 2012-12-16 14:16:10 minas-tirith spamd 17124 - - child process [17127] exited or timed out without signaling production of a PID file: exit 255 at /usr/sbin/spamd line 2589.

It seems it needs some files in the config directory, which I have doubt
to know which it is, or how to generate those files.

The init script does this:


startproc -p $PIDFILE $SPAMD_BIN $SPAMD_ARGS -r $PIDFILE

where:

SPAMD_ARGS="-d -c -L"
PIDFILE=/var/run/spamd.pid
SPAMD_BIN=/usr/sbin/spamd

and the switches are:


-d, --daemonize                   Daemonize
-c, --create-prefs                Create user preferences files
-L, --local                       Use local tests only (no DNS)

I have not modified any file yet, so those are the defaults.


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

Hi, this probably won’t help since I don’t know a thing about spamd, but from this script : http://cpansearch.perl.org/src/MSERGEANT/Mail-SpamAssassin-2.43/spamd/suse-rc-script.sh i gathered that spamd needs a file called /var/run/spamd.pid. Since I don’t use spamd, I don’t have that on my system, it it there on yours? HTH Lenwolf

On 2012-12-17 08:06, lenwolf wrote:
>
> Hi, this probably won’t help since I don’t know a thing about spamd,
> but from this script : http://tinyurl.com/d49sdyv i gathered that spamd
> needs a file called /var/run/spamd.pid. Since I don’t use spamd, I
> don’t have that on my system, it it there on yours? HTH Lenwolf

No, that file is created when spamd is running. It is a text file with
only a number in it, the PID of the process. It is an old method
programmers use to locate daemons.


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

On 2012-12-16 14:38, Carlos E. R. wrote:

> The mail log produces these entries:
>
>


&gt;&gt; &lt;2.6&gt; 2012-12-16 14:16:09 minas-tirith spamd 17124 - -  logger: removing stderr method
&gt;&gt; &lt;2.4&gt; 2012-12-16 14:16:09 minas-tirith spamd 17127 - -  config: could not find site rules directory
&gt;&gt; &lt;2.3&gt; 2012-12-16 14:16:10 minas-tirith spamd 17127 - -  check: no loaded plugin implements 'check_main': cannot scan!
&gt;&gt; &lt;2.3&gt; 2012-12-16 14:16:10 minas-tirith spamd 17127 - -  Check the necessary '.pre' files are in the config directory.
&gt;&gt; &lt;2.3&gt; 2012-12-16 14:16:10 minas-tirith spamd 17124 - -  child process [17127] exited or timed out without signaling production of a PID file: exit 255 at /usr/sbin/spamd line 2589.
&gt;
&gt; It seems it needs some files in the config directory, which I have doubt
&gt; to know which it is, or how to generate those files.


The problem was that the directory /etc/mail/spamassassin/* did not
exist. It belongs to package perl-Mail-SpamAssassin, which was
installed, but the files were missing. Solution was to install it again.
The solution was found with help from the mail list.

--
Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 "Celadon" (Minas Tirith))