Spamassassin not working?

nealdxmhost

Verified User
Joined
Jan 1, 2009
Messages
237
Location
Los Angeles CA
the last few days my server has been getting bombarded with spam like crazy, anyhow I have been reading the Spamassassin threads and I ran ;

Code:
[root@cp ~]# spamassassin -V
SpamAssassin version 3.3.1
  running on Perl version 5.8.8
[root@cp ~]# /usr/bin/spamd -d -c -m 15
child process [26730] exited or timed out without signaling production of a PID file: exit 255 at /usr/bin/spamd line 2588.
And I also tried it this way as well;
Code:
[root@cp ~]# /etc/init.d/spamassassin restart
Stopping spamd:                                            [FAILED]
Starting spamd: child process [26836] exited or timed out without signaling production of a PID file: exit 255 at /usr/bin/spamd line 2588.

Still not feeling the love, I also tried this as well;
Code:
[root@cp ~]#  /usr/local/directadmin/scripts/packages/Mail-SpamAssassin-3.3.1/sa-update
channel: no 'mirrors.updates.spamassassin.org' record found, channel failed

Any ideas?
 
You should try 'sa-update -D' then you are in debug mode and got more information and maybe also the reason why it doesn't work.
 
You should try 'sa-update -D' then you are in debug mode and got more information and maybe also the reason why it doesn't work.

This is the result when I run sa-update -D:
Code:
./sa-update -D
Sep 21 14:28:12.450 [29737] dbg: logger: adding facilities: all
Sep 21 14:28:12.450 [29737] dbg: logger: logging level is DBG
Sep 21 14:28:12.450 [29737] dbg: generic: SpamAssassin version 3.3.1
Sep 21 14:28:12.450 [29737] dbg: generic: Perl 5.008008, PREFIX=/usr, DEF_RULES_DIR=/usr/share/spamassassin, LOCAL_RULES_DIR=/etc/mail/spamassassin, LOCAL_STATE_DIR=/var/lib/spamassassin
Sep 21 14:28:12.451 [29737] dbg: config: timing enabled
Sep 21 14:28:12.452 [29737] dbg: config: score set 0 chosen.
Sep 21 14:28:12.478 [29737] dbg: dns: no ipv6
Sep 21 14:28:12.478 [29737] dbg: dns: is Net::DNS::Resolver available? yes
Sep 21 14:28:12.478 [29737] dbg: dns: Net::DNS version: 0.60
Sep 21 14:28:12.478 [29737] dbg: generic: sa-update version svn917659
Sep 21 14:28:12.479 [29737] dbg: generic: using update directory: /var/lib/spamassassin/3.003001
Sep 21 14:28:13.907 [29737] dbg: diag: perl platform: 5.008008 linux
Sep 21 14:28:13.907 [29737] dbg: diag: [...] module installed: Digest::SHA1, version 2.11
Sep 21 14:28:13.907 [29737] dbg: diag: [...] module installed: HTML::Parser, version 3.56
Sep 21 14:28:13.907 [29737] dbg: diag: [...] module installed: Net::DNS, version 0.60
Sep 21 14:28:13.907 [29737] dbg: diag: [...] module installed: NetAddr::IP, version 4.027
Sep 21 14:28:13.907 [29737] dbg: diag: [...] module installed: Time::HiRes, version 1.9717
Sep 21 14:28:13.907 [29737] dbg: diag: [...] module installed: Archive::Tar, version 1.48
Sep 21 14:28:13.908 [29737] dbg: diag: [...] module installed: IO::Zlib, version 1.09
Sep 21 14:28:13.908 [29737] dbg: diag: [...] module installed: Digest::SHA1, version 2.11
Sep 21 14:28:13.908 [29737] dbg: diag: [...] module installed: MIME::Base64, version 3.09
Sep 21 14:28:13.908 [29737] dbg: diag: [...] module installed: DB_File, version 1.815
Sep 21 14:28:13.908 [29737] dbg: diag: [...] module installed: Net::SMTP, version 2.31
Sep 21 14:28:13.908 [29737] dbg: diag: [...] module installed: Mail::SPF, version v2.004
Sep 21 14:28:13.908 [29737] dbg: diag: [...] module installed: IP::Country::Fast, version 604.001
Sep 21 14:28:13.908 [29737] dbg: diag: [...] module installed: Razor2::Client::Agent, version 2.84
Sep 21 14:28:13.909 [29737] dbg: diag: [...] module installed: Net::Ident, version 1.20
Sep 21 14:28:13.909 [29737] dbg: diag: [...] module not installed: IO::Socket::INET6 ('require' failed)
Sep 21 14:28:13.909 [29737] dbg: diag: [...] module installed: IO::Socket::SSL, version 1.06
Sep 21 14:28:13.909 [29737] dbg: diag: [...] module installed: Compress::Zlib, version 2.017
Sep 21 14:28:13.909 [29737] dbg: diag: [...] module installed: Mail::DKIM, version 0.37
Sep 21 14:28:13.909 [29737] dbg: diag: [...] module installed: DBI, version 1.611
Sep 21 14:28:13.909 [29737] dbg: diag: [...] module installed: Getopt::Long, version 2.35
Sep 21 14:28:13.909 [29737] dbg: diag: [...] module installed: LWP::UserAgent, version 5.835
Sep 21 14:28:13.909 [29737] dbg: diag: [...] module installed: HTTP::Date, version 5.831
Sep 21 14:28:13.910 [29737] dbg: diag: [...] module installed: Encode::Detect, version 1.01
Sep 21 14:28:13.917 [29737] dbg: gpg: Searching for 'gpg'
Sep 21 14:28:13.917 [29737] dbg: util: current PATH is: /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
Sep 21 14:28:13.929 [29737] dbg: util: executable for gpg was found at /usr/bin/gpg
Sep 21 14:28:13.929 [29737] dbg: gpg: found /usr/bin/gpg
Sep 21 14:28:13.944 [29737] dbg: gpg: release trusted key id list: 5E541DC959CB8BAC7C78DFDC4056A61A5244EC45 26C900A46DD40CD5AD24F6D7DEE01987265FA05B 0C2B1D7175B852C64B3CDC716C55397824F434CE
Sep 21 14:28:13.996 [29737] dbg: channel: attempting channel updates.spamassassin.org
Sep 21 14:28:13.997 [29737] dbg: channel: update directory /var/lib/spamassassin/3.003001/updates_spamassassin_org
Sep 21 14:28:13.997 [29737] dbg: channel: channel cf file /var/lib/spamassassin/3.003001/updates_spamassassin_org.cf
Sep 21 14:28:13.997 [29737] dbg: channel: channel pre file /var/lib/spamassassin/3.003001/updates_spamassassin_org.pre
Sep 21 14:28:14.040 [29737] dbg: dns: query failed: 1.3.3.updates.spamassassin.org => NOERROR
Sep 21 14:28:14.045 [29737] dbg: dns: query failed: mirrors.updates.spamassassin.org => NOERROR
channel: no 'mirrors.updates.spamassassin.org' record found, channel failed
Sep 21 14:28:14.045 [29737] dbg: diag: updates complete, exiting with code 4
 
Do you have CentOS/RHEL?

I dont have the file /etc/init.d/spamassassin.
I'm using '/usr/bin/sa-update' and not '/usr/local/directadmin/scripts/packages/.../sa-update'

Got also the same version like you
root@l:~# spamassassin -V
SpamAssassin version 3.3.1
running on Perl version 5.8.8
The last time I update SpamAssassin to latest version I had some errors/issues, after doing the commands below I can update without any problems. (can't remember the exactly errors)

You could try the commands / steps blow (CentOS/RHEL)

wget http://dave.t0xic.nl/yum/dag.repo -O/etc/yum.repos.d/dag.repo
yum -y --enablerepo=dag install perl-Mail-SPF perl-SPF-Query perl-Razor* perl-Net-Ident perl-IO-Socket* perl-Mail-DKIM perl-Mail-DomainKeys perl-Archive-Tar perl-IO-Zlib perl-Encode-Detect perl-libwww-perl perl-IP-Country perl-DBI perl-Mail-SPF-Query re2c
cpan install Mail::SpamAssassin::plugin::Rule2XSBody
Now create a file (chmod +x) and add the lines below
#!/bin/sh
sa-update -D --gpgkey D1C035168C1EBC08464946DA258CDB3ABDE9DC10 --channel saupdates.openprotect.com --channel updates.spamassassin.org --allowplugins
sa-compile -D
killall spamd
/usr/bin/spamd -d -c -m 5
Add to the cronjob
0 0 * * 0 root /opt/update-sa.sh >> /dev/null 2>&1
Now try if its working like running the file manually: /opt/update-sh.sh
 
Last edited:
Yes I have CENTOS 5.5 64 bit and I tried what you posted line by line and everything went smooth until.............. you guessed it..... I got the same error :mad:

Perhaps this is the time that I should launch the server out a window........
 
This is the result that pops up when the "[root@cp opt]# sa-update -D --gpgkey D1C035168C1EBC08464946DA258CDB3ABDE9DC10 --channel saupdates.openprotect.com --channel updates.spamassassin.org --allowplugins" is run

Code:
[root@cp opt]# sa-update -D --gpgkey D1C035168C1EBC08464946DA258CDB3ABDE9DC10 --channel saupdates.openprotect.com --channel updates.spamassassin.org --allowplugins
Sep 21 15:43:47.355 [2208] dbg: dns: query failed: mirrors.saupdates.openprotect.com => NOERROR
channel: no 'mirrors.saupdates.openprotect.com' record found, channel failed
Sep 21 15:43:47.355 [2208] dbg: channel: attempting channel updates.spamassassin.org
Sep 21 15:43:47.355 [2208] dbg: channel: update directory /var/lib/spamassassin/3.003001/updates_spamassassin_org
Sep 21 15:43:47.355 [2208] dbg: channel: channel cf file /var/lib/spamassassin/3.003001/updates_spamassassin_org.cf
Sep 21 15:43:47.355 [2208] dbg: channel: channel pre file /var/lib/spamassassin/3.003001/updates_spamassassin_org.pre
Sep 21 15:43:47.369 [2208] dbg: dns: query failed: 1.3.3.updates.spamassassin.org => NOERROR
Sep 21 15:43:47.380 [2208] dbg: dns: query failed: mirrors.updates.spamassassin.org => NOERROR
channel: no 'mirrors.updates.spamassassin.org' record found, channel failed
Sep 21 15:43:47.380 [2208] dbg: diag: updates complete, exiting with code 4
 
dbg: dns: query failed: mirrors.saupdates.openprotect.com => NOERROR
channel: no 'mirrors.saupdates.openprotect.com' record found, channel failed
It could be possible that your DNS isn't working correctly?
 
Try uncommenting Google's DNS (looks like Google's) and try that

nameserver 8.8.8.8
nameserver 8.8.4.4

Did that and I also uncommented "search dxmhosting.com" and then I did this to restart networking and got this result;
Code:
[root@cp ~]# /etc/init.d/network restart
Shutting down interface eth0:                              [  OK  ]
Shutting down loopback interface:                          [  OK  ]
FATAL: Module off not found.
CRITICAL : [ipv6_test] Kernel is not compiled with IPv6 support
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth0:  FATAL: Module off not found.
CRITICAL : [ipv6_test] Kernel is not compiled with IPv6 support
                                                           [  OK  ]
FATAL: Module off not found.
CRITICAL : [ipv6_test] Kernel is not compiled with IPv6 support

Ruh roh......... is there something else I gotta fix?
 
found the answer to that networking issue, had to edit /etc/sysconfig/network so it looks like this

Code:
[root@cp ~]# cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=cp.dxmhosting.com

networking_ipv6 was set to yes ------ NOT GOOD I would guess......

Anyhow I restarted the network and there were no errors.
 
Still no luck :confused:

in DA when I click on Spamassassin I get this;
Code:
[CENTER]
Your connection has timed out

Details

Either your request was invalid or the program hasn't completed your request.
Please notify the server admin[/CENTER]
 
My last suggestion is to try an reinstall it via

/usr/local/directadmin/scripts/spam.sh

Or maybe someone else will have some suggestions
 
Remove the 'nameserver 127.0.0.1' from your /etc/resolv.conf (only need if you run a local dns separated of bind)

Also after '/etc/init.d/network restart' you need to do '/etc/init.d/startips'.

I guess you did '/usr/local/directadmin/scripts/spam.sh' and missed the ERROR while compiling... I had some errors while compiling, had to do some modifications and recompile again.
 
Remove the 'nameserver 127.0.0.1' from your /etc/resolv.conf (only need if you run a local dns separated of bind)

Also after '/etc/init.d/network restart' you need to do '/etc/init.d/startips'.

I guess you did '/usr/local/directadmin/scripts/spam.sh' and missed the ERROR while compiling... I had some errors while compiling, had to do some modifications and recompile again.
Did what you said and while everything works in command line now, the issue at this point is SA timing out on me in the control panel
 
Could it be a missing CPAN module for the DA plug-in? To tell you the truth, and I've forgotten which, but I needed to install a few during installation and when using sa-update.

Failing that, maybe a quick email to John will help.
 
Back
Top