Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SpamAssassin Problems

Discussion in 'E-mail Discussion' started by wbruan, Nov 14, 2014.

  1. wbruan

    wbruan Registered

    Joined:
    Nov 13, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    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:
    root@ruan [~]# sa-update
    -bash: sa-update: command not found
    So then I tried:

    Code:
    root@ruan [~]# /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
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,423
    Likes Received:
    1,960
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. wbruan

    wbruan Registered

    Joined:
    Nov 13, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator

    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" <cpanel@localhost>
    
    
    
    Apache SpamAssassin™ has been enabled on this account.
    
    Any suggestions?

    Regards,

    Ruan
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice