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!

SOLVED Spamassassin warning and missing rules?

Discussion in 'E-mail Discussion' started by EneTar, Feb 11, 2018.

Tags:
  1. EneTar

    EneTar Well-Known Member

    Joined:
    Dec 19, 2015
    Messages:
    137
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    I have enabled in WHM -> Exim Configuration the rulesets

    Code:
    BAYES_POISON_DEFENSE Apache SpamAssassin™
    Passive OS Fingerprinting for Apache SpamAssassin™
    KAM Apache SpamAssassin™ ruleset
    Apache SpamAssassin™ ruleset that cPanel uses on cpanel.net
    Running
    Code:
    /usr/local/cpanel/3rdparty/bin/spamassassin -D --lint 2>&1 | grep -Ei '(failed|undefined dependency|score set for non-existent rule)'
    I get
    Code:
    Feb 11 11:46:30.065 [28410] dbg: diag: [...] module not installed: Net::CIDR::Lite ('require' failed)
    Feb 11 11:46:30.065 [28410] dbg: diag: [...] module not installed: Net::Patricia ('require' failed)
    Feb 11 11:46:30.918 [28410] dbg: config: warning: score set for non-existent rule HEADER_HOST_IN_BLACKLIST
    Feb 11 11:46:30.918 [28410] dbg: config: warning: score set for non-existent rule RCVD_IN_BRBL_LASTEXT
    Feb 11 11:46:30.919 [28410] dbg: config: warning: score set for non-existent rule FILL_THIS_FORM_LOAN
    Feb 11 11:46:30.919 [28410] dbg: config: warning: score set for non-existent rule FILL_THIS_FORM_FRAUD_PHISH
    Feb 11 11:46:30.919 [28410] dbg: config: warning: score set for non-existent rule URIBL_AB_SURBL
    Feb 11 11:46:30.920 [28410] dbg: config: warning: score set for non-existent rule RCVD_IN_CBL
    Feb 11 11:46:30.920 [28410] dbg: config: warning: score set for non-existent rule DUP_SUSP_HDR
    Feb 11 11:46:30.920 [28410] dbg: config: warning: score set for non-existent rule URIBL_JP_SURBL
    Feb 11 11:46:30.920 [28410] dbg: config: warning: score set for non-existent rule HEADER_HOST_IN_WHITELIST
    Feb 11 11:46:30.941 [28410] dbg: config: warning: no description set for KAM_RPTR_FAILED
    Feb 11 11:46:31.498 [28410] dbg: rules: CBJ_GiveMeABreak merged duplicates: KAM_IFRAME KAM_RAPTOR KAM_RPTR_FAILED KAM_RPTR_PASSED KAM_RPTR_SUSPECT
    Feb 11 11:46:32.082 [28410] dbg: rules: meta test KAM_GRABBAG9 has undefined dependency 'MALFORMED_FREEMAIL'
    Feb 11 11:46:32.087 [28410] dbg: rules: meta test KAM_COLLEGE has undefined dependency '__KAM_URIBL_PCCC'
    Feb 11 11:46:32.089 [28410] dbg: rules: meta test KAM_SALE has undefined dependency 'BODY_8BITS'
    Feb 11 11:46:32.090 [28410] dbg: rules: meta test MULTI_FORGED has undefined dependency 'FORGED_GMAIL_RCVD'
    Feb 11 11:46:32.091 [28410] dbg: rules: meta test KAM_CREDIT2 has undefined dependency '__KAM_URIBL_PCCC'
    Feb 11 11:46:32.091 [28410] dbg: rules: meta test JMQ_CONGRAT has undefined dependency 'HK_SPAMMY_FILENAME'
    Feb 11 11:46:32.093 [28410] dbg: rules: meta test KAM_PHISH2 has undefined dependency '__KAM_URIBL_PCCC'
    Feb 11 11:46:32.099 [28410] dbg: rules: meta test KAM_BAD_DNSWL has undefined dependency 'IN_BRBL'
    Feb 11 11:46:32.099 [28410] dbg: rules: meta test KAM_BAD_DNSWL has undefined dependency 'RCVD_IN_BRBL_RELAY'
    Feb 11 11:46:32.099 [28410] dbg: rules: meta test KAM_BAD_DNSWL has undefined dependency '__KAM_URIBL_PCCC'
    Feb 11 11:46:32.099 [28410] dbg: rules: meta test KAM_BAD_DNSWL has undefined dependency 'KAM_MESSAGE_EMAILBL_PCCC'
    Feb 11 11:46:32.099 [28410] dbg: rules: meta test KAM_BAD_DNSWL has undefined dependency 'RCVD_IN_HOSTKARMA_W'
    Feb 11 11:46:32.101 [28410] dbg: rules: meta test CONFIRMED_FORGED has undefined dependency 'FORGED_GMAIL_RCVD'
    Feb 11 11:46:32.103 [28410] dbg: rules: meta test KAM_GOOGLE2 has undefined dependency 'HK_SPAMMY_FILENAME'
    Feb 11 11:46:32.106 [28410] dbg: rules: meta test DIGEST_MULTIPLE has undefined dependency 'DCC_CHECK'
    Feb 11 11:46:32.117 [28410] dbg: rules: meta test KAM_BADPDF2 has undefined dependency 'KAM_BADPDF'
    Feb 11 11:46:32.117 [28410] dbg: rules: meta test KAM_BADPDF2 has undefined dependency 'KAM_BADPDF1'
    Code:
    /usr/local/cpanel/3rdparty/bin/spamassassin -V
    SpamAssassin version 3.4.1
      running on Perl version 5.24.1
    
    Am I missing any ruleset?
    in /etc/mail/spamassassin there are the following:
    Code:
    BAYES_POISON_DEFENSE.cf
    init.pre
    local.cf.rpmsave
    v312.pre
    v320.pre.rpmsave
    CPANEL.cf
    KAM.cf
    local.cf
    P0f.cf
    v310.pre
    v320.pre
    v330.pre
    
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,423
    Likes Received:
    1,957
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    I see the same debug output when running that command on a test system where SpamAssassin is working as intended. It's not an indication that your rules are not enabled. Are you experiencing a specific issue with SpamAssassin?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. EneTar

    EneTar Well-Known Member

    Joined:
    Dec 19, 2015
    Messages:
    137
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    Not anything in particular other than those warnings. Spamassassin works on my system. However I believe that all those rules and the rules that depend on those are not evaluated since they are missing.

    I don't think that this particular debug output should be normal behavior. Perhaps you would like to have a look with your team.
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,423
    Likes Received:
    1,957
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    This is noted in the output of the "/usr/local/cpanel/scripts/sa-update_wrapper" command:

    Code:
    [*] Please note that 'IO::Socket::IP' and 'Net::Patricia' are not needed by our implementation of SpamAssassin.
    [*] The warnings related to them can be safely ignored.
    
    Additionally, the output you noticed included a reference to Net::CIDR::Lite. You can also ignore that warning because Net::CIDR::Lite is only used with a SpamAssassin plugin that we don't enable.

    As far as the rules/scores warning, here's part of a response from one of our Technical Analysts on a similar inquiry opened as a support ticket:

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. EneTar

    EneTar Well-Known Member

    Joined:
    Dec 19, 2015
    Messages:
    137
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    Thanks Michael it makes sense then.
     
    cPanelMichael likes this.
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