Results 1 to 4 of 4

Thread: I can not start spamd (spamassassin daemon)

  1. #1
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default 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:

    Code:
    
    > 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:

    Code:
    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:

    Code:
    -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))

  2. #2

    Default Re: I can not start spamd (spamassassin daemon)

    Hi, this probably won't help since I don't know a thing about spamd, but from this script : http://cpansearch.perl.org/src/MSERG...e-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

  3. #3
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: I can not start spamd (spamassassin daemon)

    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))

  4. #4
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: I can not start spamd (spamassassin daemon)

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


    > The mail log produces these entries:
    >
    > [/CODE]
    >> <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 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))

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •