SpamAssassin Problems

wbruan

Registered
Nov 13, 2014
2
0
1
cPanel Access Level
Root Administrator
Hey everyone.

I am having some issues with SpamAssassin. I have my own VPS which has a WHM/CPanel Installation that I use to manage a handful of domains.

When I try to enable SpamAssassin in CPanel, I get the following message:

Code:
config: no rules were found!  Do you need to run 'sa-update'? at /usr/local/cpanel/3rdparty/perl/514/bin/spamassassin line 407.
Most online sources advise that I run sa-update from the command line. This is what I get:

Code:
[email protected] [~]# sa-update
-bash: sa-update: command not found
So then I tried:

Code:
[email protected] [~]# /usr/local/cpanel/3rdparty/perl/514/bin/sa-update
channel: no 'mirrors.updates.spamassassin.org' record found, channel failed
I am now kind of at my wits end. The domains on this server are almost all receiving massive volumes of spam, so I really want it activated.

Does anybody have any advice for me?

Thanks,

Ruan
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello :)

Please review the following file on your system:

/etc/resolv.conf

You may need to remove your existing resolvers if they are not working and use public resolvers such as 8.8.8.8 and 8.8.4.4.

Thank you.
 

wbruan

Registered
Nov 13, 2014
2
0
1
cPanel Access Level
Root Administrator
Please review the following file on your system:

/etc/resolv.conf

You may need to remove your existing resolvers if they are not working and use public resolvers such as 8.8.8.8 and 8.8.4.4.

Thanks cPanelMichael. I did as you suggested, and the contents of my resolv.conf file now look like this:

Code:
nameserver 8.8.8.8
nameserver 8.8.4.4
There is no error message when I run the below anymore:

/usr/local/cpanel/3rdparty/perl/514/bin/sa-update

But now, when I try to enable SpamAssassin in the cPanel, I get the following:

Code:
Nov 14 18:31:13.398 [3002] warn: config: created user preferences file: /home/cobalt/.spamassassin/user_prefs

Nov 14 18:31:15.429 [3002] warn: razor2: razor2 check failed: Invalid argument razor2: razor2 had unknown error during get_server_info at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/Mail/SpamAssassin/Plugin/Razor2.pm line 187. at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/Mail/SpamAssassin/Plugin/Razor2.pm line 330.

X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ruan.dedicated.co.za

X-Spam-Level: ****

X-Spam-Status: No, score=4.5 required=5.0 tests=MISSING_DATE,MISSING_HEADERS,

	MISSING_MID,MISSING_SUBJECT,NO_HEADERS_MESSAGE,NO_RECEIVED,NO_RELAYS

	shortcircuit=no autolearn=no autolearn_force=no version=3.4.0

From: "Apache SpamAssassin" <[email protected]>



Apache SpamAssassin™ has been enabled on this account.
Any suggestions?

Regards,

Ruan