[opensuse] I can not start spamd (spamassassin daemon)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 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. I understand that the "-c" option is to create those files it is complaining about, so perhaps what is missing is the directory, but where? - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iF4EAREIAAYFAlDQWMoACgkQja8UbcUWM1yFZwD+Nx2+PRWbWzpEvVACSNRt8sT9 GTXeUV528YCRNHqnSSgA/ikCcR+B/rP3zdJG2XPBQnotCMhBKLo6XTrlhDXlybVg =HzQ/ -----END PGP SIGNATURE-----
[18.12.2012 12:51] [Carlos E. R.]:
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.
What version of openSUSE and spamassassin do you use? :-) When I look at older cases of the same problem, I see that for example on http://spamassassin.1065346.n5.nabble.com/check-no-loaded-plugin-implements-... the problem was that the user spamd runs as was not allowed to access the (well installed) files. HTH Werner -- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Content-ID:
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.
What version of openSUSE and spamassassin do you use? :-)
Oh, I thought my signature had that info. Corrected. It is 11.4 with evergreen. SA is spamassassin-3.3.1-12.1.x86_64
When I look at older cases of the same problem, I see that for example on http://spamassassin.1065346.n5.nabble.com/check-no-loaded-plugin-implements-... the problem was that the user spamd runs as was not allowed to access the (well installed) files.
Where are those files? There are no .pre files in the spamassassin rpm, I just looked. I think it is a permission problem, but I don't have another computer here to look at. And locate can not find any .pre files in the entire disk. Ok, reading that post I notice that the /etc/mail/spamassassin folder does not exist. I create it as root, same result. I'm unsure which user spamd runs as (I'm not using amavis as that poster uses). "grep spam /etc/passwd" returns empty. No such user here. I'm with a capped Internet connection at the moment, at 500MB/month, so googling is not a good method for me... - -- Cheers Carlos E. R. (from 11.4, with Evergreen, x86_64 "Celadon" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iF4EAREIAAYFAlDQdK4ACgkQja8UbcUWM1yrZQEAkGMcf8OyhZVH5Ru/ID5O4NPq b+COqlJhIj7gqpmUusIBAJR4pJjCRfQM6bs1HH3dz8gj4J2V5oo+VOJt9rUGcahO =YAqp -----END PGP SIGNATURE-----
Carlos E. R. wrote:
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:~ # ·····························++-
Did you run sa-update to retrieve the lastest rules? If not, /usr/share/spamassassin will be empty and spamd won't start with that. -- Per Jessen, Zürich (2.7°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 El 2012-12-18 a las 15:17 +0100, Per Jessen escribió:
Did you run sa-update to retrieve the lastest rules? If not, /usr/share/spamassassin will be empty and spamd won't start with that.
No, I did not. I never needed to do it. But it fails, same problem: minas-tirith:~ # sa-update -v Update available for channel updates.spamassassin.org config: no configuration text or files found! do you need to run 'sa-update'? check: no loaded plugin implements 'check_main': cannot scan! Check the necessary '.pre' files are in the config directory. minas-tirith:~ # I also created .spamassassin and spamassassin folders (I don't know which one is the one), no difference. - -- Cheers Carlos E. R. (from 11.4, with Evergreen, x86_64 "Celadon" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iF4EAREIAAYFAlDQfi8ACgkQja8UbcUWM1yOegD+PtkxMGHch4UamsA6jZIrjCtl M4P3Hpn1mgf1qLk7CcwA/3JmgFjt+7OC7d/TAC2oUizM1FWijQINM1Op9RS80QSB =awvN -----END PGP SIGNATURE-----
Carlos E. R. wrote:
El 2012-12-18 a las 15:17 +0100, Per Jessen escribió:
Did you run sa-update to retrieve the lastest rules? If not, /usr/share/spamassassin will be empty and spamd won't start with that.
No, I did not. I never needed to do it.
I know, but you do now - the package doesn't come with any rules.
But it fails, same problem:
minas-tirith:~ # sa-update -v Update available for channel updates.spamassassin.org config: no configuration text or files found! do you need to run 'sa-update'? check: no loaded plugin implements 'check_main': cannot scan! Check the necessary '.pre' files are in the config directory. minas-tirith:~ #
Hmm, your /etc/mail/spamassassin should be populated like this: # l /etc/mail/spamassassin/ total 36 drwxr-xr-x 3 root root 4096 Dec 8 14:21 ./ drwxr-xr-x 3 root root 4096 Dec 7 15:26 ../ -rw-r--r-- 1 root root 1299 Jul 16 00:18 init.pre -rw-r--r-- 1 root root 1170 Jul 16 00:18 local.cf drwx------ 2 root root 4096 Dec 8 14:21 sa-update-keys/ -rw-r--r-- 1 root root 2524 Jul 16 00:18 v310.pre -rw-r--r-- 1 root root 1194 Jul 16 00:18 v312.pre -rw-r--r-- 1 root root 2416 Jul 16 00:18 v320.pre -rw-r--r-- 1 root root 1237 Jul 16 00:18 v330.pre If you don't have that, something went wrong with your install. The files above are from "perl-Mail-SpamAssassin-3.3.2-25.3.3.i586". -- Per Jessen, Zürich (2.2°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Carlos E. R.
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:
Are you starting spamd as root? My 11.2 (evergreen) server is running: spamassassin-3.3.1-46.4.x86_64 user prefs are ~/.spamassassin startproc -p $PIDFILE $SPAMD_BIN $SPAMD_ARGS -r $PIDFILE USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 26863 0.0 1.3 116048 55016 ? Ss 03:02 0:06 /usr/sbin/spamd -d -c -L -r /var/run/spamd.pid root 26864 0.1 2.0 145008 84520 ? S 03:02 0:50 \_ spamd /child root 26865 0.0 1.3 116048 53292 ? S 03:02 0:00 \_ spamd /child 10:39 wahoo:~ > locate \.pre |grep spam /etc/mail/spamassassin/init.pre /etc/mail/spamassassin/v310.pre /etc/mail/spamassassin/v312.pre /etc/mail/spamassassin/v320.pre /etc/mail/spamassassin/v330.pre 10:39 wahoo:~ > rpm -qf /etc/mail/spamassassin/init.pre perl-Mail-SpamAssassin-3.3.1-46.4.x86_64 maybe this helps ?? -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 El 2012-12-18 a las 10:41 -0500, Patrick Shanahan escribió:
* Carlos E. R. <> [12-18-12 07:10]:
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:
Are you starting spamd as root?
Of course, there is no other way.
My 11.2 (evergreen) server is running: spamassassin-3.3.1-46.4.x86_64
user prefs are ~/.spamassassin
startproc -p $PIDFILE $SPAMD_BIN $SPAMD_ARGS -r $PIDFILE
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 26863 0.0 1.3 116048 55016 ? Ss 03:02 0:06 /usr/sbin/spamd -d -c -L -r /var/run/spamd.pid root 26864 0.1 2.0 145008 84520 ? S 03:02 0:50 \_ spamd /child root 26865 0.0 1.3 116048 53292 ? S 03:02 0:00 \_ spamd /child
10:39 wahoo:~ > locate \.pre |grep spam /etc/mail/spamassassin/init.pre /etc/mail/spamassassin/v310.pre /etc/mail/spamassassin/v312.pre /etc/mail/spamassassin/v320.pre /etc/mail/spamassassin/v330.pre
10:39 wahoo:~ > rpm -qf /etc/mail/spamassassin/init.pre perl-Mail-SpamAssassin-3.3.1-46.4.x86_64
I have perl-Mail-SpamAssassin-3.3.1-12.1.x86_64 installed, it list those files (rpm -ql...), but they are not in the system. That's the problem, I have to reinstall that package. [...] Forcing reinstall... done. rcspamd start.... success. sa-update...success. (root's .spammassassin directory remains empty, /etc/mail/spamassassin is filled)
maybe this helps ??
Yes :-) - -- Cheers Carlos E. R. (from 11.4, with Evergreen, x86_64 "Celadon" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iF4EAREIAAYFAlDQtl8ACgkQja8UbcUWM1yn4wD+NlLy7eRyBtle2l5FvdXxsHNc WwDbx7IL2vd70dcG64YA/j5Mc7K1oQK1Saazn5wD6qc81/Cf8Sz0iGyGQCUhUita =qnwk -----END PGP SIGNATURE-----
participants (4)
-
Carlos E. R.
-
Patrick Shanahan
-
Per Jessen
-
Werner Flamme