The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Apache SpamAssassin FH_DATE_PAST_20XX 0.0 rule bug

Discussion in 'E-mail Discussions' started by sneader, Jan 1, 2010.

  1. sneader

    sneader Well-Known Member

    Joined:
    Aug 21, 2003
    Messages:
    1,126
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    La Crosse, WI
    cPanel Access Level:
    Root Administrator
    Today, Chirpy posted the following on his blog at ConfigServer Blog :

    I'm not running MailScanner, but certainly running Spam Assassin. Individual users can edit their SA scoring rules within cPanel, but how can I do this for the system wide configuration?

    - Scott
     
    #1 sneader, Jan 1, 2010
    Last edited by a moderator: Jan 2, 2010
  2. sneader

    sneader Well-Known Member

    Joined:
    Aug 21, 2003
    Messages:
    1,126
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    La Crosse, WI
    cPanel Access Level:
    Root Administrator
    I believe this will work, but if anyone has suggestions/corrections, I'm all ears:

    1) Edit: /etc/mail/spamassassin/local.cf
    Add this to the bottom of the file:
    score FH_DATE_PAST_20XX 0.0

    2) Restart SpamAssassin:
    /scripts/restartsrv spamd

    - Scott
     
  3. alankru

    alankru Member

    Joined:
    Jan 2, 2006
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
  4. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Via root SSH access, SpamAssassin rules may be updated using the following command as mentioned in the linked bug report:
    Code:
    # sa-update
    To show more diagnostic/debugging information, the same command can be used with an extra option as seen below:
    Code:
    # sa-update -D
     
    #4 cPanelDon, Jan 1, 2010
    Last edited: Jan 1, 2010
  5. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Friendly Moderator Note

    I've moved this thread into the Mail forums area so that the topic will receive more relevant attention and related discussion.
     
  6. ziggyjr

    ziggyjr Registered

    Joined:
    Feb 10, 2008
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    When tyring to install the is via '/scripts/autorepair spamd_y2010_fix' I keep getting this error.


    [43440] dbg: channel: selected mirror http://www.sa-update.pccc.com
    [43440] dbg: http: GET request, http://www.sa-update.pccc.com/895075.tar.gz
    [43440] dbg: http: GET request, http://www.sa-update.pccc.com/895075.tar.gz.sha1
    [43440] dbg: http: GET request, http://www.sa-update.pccc.com/895075.tar.gz.asc
    [43440] dbg: sha1: verification wanted: ade9426b8f85bed554604033c71e925e5e597502
    [43440] dbg: sha1: verification result: ade9426b8f85bed554604033c71e925e5e597502
    [43440] dbg: channel: populating temp content file
    [43440] dbg: gpg: populating temp signature file
    [43440] dbg: gpg: calling gpg
    [43440] dbg: gpg: gpg: Signature made Fri Jan 1 15:52:54 2010 EST using RSA key ID 24F434CE
    [43440] dbg: gpg: gpg: WARNING: signing subkey 24F434CE is not cross-certified
    [43440] dbg: gpg: gpg: please see Signing Subkey Cross-Certification - GnuPG.org for more information
    [43440] dbg: gpg: [GNUPG:] ERRSIG 6C55397824F434CE 1 2 00 1262379174 1
    [43440] dbg: gpg: gpg: Can't check signature: General error
    error: GPG validation failed!
    The update downloaded successfully, but the GPG signature verification
    failed.
    channel: GPG validation failed, channel failed
    [43440] dbg: generic: cleaning up temporary directory/files
    [43440] dbg: diag: updates complete, exiting with code 4
    Done
    spamd_y2010_fix: sa-update failed with Error code 4...Auto Repair is done.
     
  7. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    The provided log detail is output directly by the "sa-update" tool from the SpamAssassin installation.

    For corrective measures please refer to the following documentation entry in the official SpamAssassin Wiki:
    SaUpdateKeyNotCrossCertified - SpamAssassin Wiki
     
  8. alankru

    alankru Member

    Joined:
    Jan 2, 2006
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    So you have to run the update manually? SpamAssassin won't get it's/the updates automatically?

    Thanks!
     
  9. sneader

    sneader Well-Known Member

    Joined:
    Aug 21, 2003
    Messages:
    1,126
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    La Crosse, WI
    cPanel Access Level:
    Root Administrator
    Don, the Mail Forum is described as:

    Since SpamAssassin is natively supported in cPanel and WHM, I did not think it made sense to have this thread in the Mail forum. Please clarify.

    - Scott
     
  10. sneader

    sneader Well-Known Member

    Joined:
    Aug 21, 2003
    Messages:
    1,126
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    La Crosse, WI
    cPanel Access Level:
    Root Administrator
    cPanel sent out the following email notification. Of note:
    • If you have automatic updates enabled, this will be fixed during the next upcp
    • If you do NOT have automatic updates enabled, there is now a script you can run to manually fix the problem.

     
  11. Dada

    Dada Registered

    Joined:
    Jan 4, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    /scripts/autorepair spamd_y2010_fix shows an error:


     
  12. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    You're correct that SpamAssassin itself is natively supported; I think either of the two forum areas could be considered suitable for a topic like this. It was my determination that the topic involved managing SpamAssassin rules, including problems arising from them, and or managing potentially customized rule configurations, and that this may be better grouped in the Mail discussion area of the forums where the topic is more related to the overall area of interest. Some topics, like this one, may have more than one organizational criteria, and with that in mind I can see where the topic may be swayed either way in terms of determining where to organize the thread.
     
  13. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Does the result occur when using just "sa-update -D"?

    Have any plug-ins or custom rules been enabled or added in SpamAssassin?

    What is the output of the following command?
    Code:
    # perl -MMail::SpamAssassin -e 'print"$Mail::SpamAssassin::VERSION\n"'
    Please also consider submitting a support request so that we may assist with investigating further; when available, please PM me your new ticket ID number so I may follow-up internally.
     
  14. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    When SpamAssassin is installed it includes a set of default rules. Outside of this I am not aware if SpamAssassin includes automatic rule updates by default; however, per the news announcement the hot fix that we have in-place will attempt an automated update using the "sa-update" tool in SpamAssassin.
     
  15. shacker23

    shacker23 Well-Known Member

    Joined:
    Feb 20, 2005
    Messages:
    263
    Likes Received:
    1
    Trophy Points:
    16
    spamassassin.kluge.net

    When I run either:

    Code:
    sa-update -D
    or
    Code:
    /scripts/autorepair spamd_y2010_fix
    I get this error:

    Code:
    http: request failed: 500 Can't connect to spamassassin.kluge.net:80 (Bad hostname 'spamassassin.kluge.net'): 500 Can't connect to spamassassin.kluge.net:80 (Bad hostname 'spamassassin.kluge.net') 
    channel: could not find working mirror, channel failed
    Suggestions?
     
  16. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Use the following command to check the contents of a file containing a list of mirrors:
    Code:
    # cat /var/lib/spamassassin/3.002004/updates_spamassassin_org/MIRRORED.BY
    If only the failing mirror is listed, try adding an alternate. Here is a an example set of entries containing two usable mirrors:
    Code:
    # test mirror: zone, cached via Coral
    #http://buildbot.spamassassin.org.nyud.net:8090/updatestage/
    http://daryl.dostech.ca/sa-update/asf/ weight=5
    http://www.sa-update.pccc.com/ weight=5
    It is also possible to simply replace the existing file with a fresh copy from an available mirror; the following two steps may be used to accomplish this (via root SSH access):
    Step 1.) Change directory, then move (backup) the existing file
    Code:
    # cd /var/lib/spamassassin/3.002004/updates_spamassassin_org
    # mv -v MIRRORED.BY MIRRORED.BY.backup
    Step 2.) Download a fresh copy using one of the following commands:
    Code:
    # wget -N http://www.sa-update.pccc.com/MIRRORED.BY
    # wget -N http://daryl.dostech.ca/sa-update/asf/MIRRORED.BY
    Reference:
    http://daryl.dostech.ca/sa-update/asf/MIRRORED.BY
    http://www.sa-update.pccc.com/MIRRORED.BY
     
  17. Promethyl

    Promethyl Well-Known Member

    Joined:
    Mar 27, 2004
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    6
    I patched mine by hand.
     
  18. shacker23

    shacker23 Well-Known Member

    Joined:
    Feb 20, 2005
    Messages:
    263
    Likes Received:
    1
    Trophy Points:
    16
    Thanks much cPanel Don - that did the trick.
     
Loading...

Share This Page