Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 1 of 6 1 2 3 ... LastLast
Results 1 to 15 of 89
  1. #1
    Member
    Join Date
    Jul 2003
    Posts
    62

    Default Spam Assassin v3.20 throwing errors

    Is anyone else getting lots of errors in /var/maillog from SpamAssassin v3.20 ?

    I'm getting a lot of ...

    Code:
    spamd[16962]: Malformed UTF-8 character (unexpected non-continuation byte 0x00, immediately after start byte 0xc5) in pattern match (m//) at /etc/mail/spamassassin/70_sare_adult.cf, rule SARE_OBFUTEENS, line 1.
    ...and similar. All in the 70_sare_adult.cf rule.

    It started after the update to v3.20.

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    I'd suggest that you use sa-update to keep the SARE rules up to date rather than downloading and installing them manually:

    /usr/bin/sa-update --nogpg --channel saupdates.openprotect.com

    Run that in a cronjob on a daily basis and remove the rules that you have in /etc/mail/spamassassin/. The recommended rules will then be kept up to date in the directory tree /var/lib/spamassassin/
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member
    Join Date
    Jul 2003
    Posts
    62

    Default

    I don't download them manually. I've got a cron job that runs rules_du_jour daily.

    Would I be better off with your sa-update command ?

    I've been using "SARE_SPECIFIC SARE_ADULT SARE_FRAUD SARE_RANDOM SARE_OEM SARE_REDIRECT_POST300 SARE_HTML0
    SARE_HEADER0 SARE_uri0 SARE_STOCKS" up till now and they've been pretty good.

    The ADULT rule doesn't seem to have been updated in years though so maybe it's now broken in v3.20

  4. #4
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    As you say, it's most likely incompatible.

    The rules_du_jour script was deprecated some time ago in favour of the inbuild sa-update procedure that SpamAssassin introduced with v3.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  5. #5
    Member
    Join Date
    Jul 2003
    Posts
    62

    Default

    switching to sa-update's cured the problem.

    Thanks

  6. #6
    Member JamesCTotalWeb's Avatar
    Join Date
    Mar 2005
    Posts
    53

    Default

    Well I am not sure what I did wrong but I am still getting this error?

    spamd[28695]: Malformed UTF-8 character (unexpected non-continuation byte 0x00, immediately after start byte 0xce) in pattern match (m//) at /var/lib/spamassassin/3.002000/saupdates_openprotect_com/70_sare_obfu1.cf, rule __SARE_OBFU_VISIT1, line 1, <GEN12> line 149.

    I deleted the rules as suggested should I delete everything in the /etc/mail/spamassassin/ directory?
    When they say it can't be done,
    Thats when they call us.
    TotalWeb-INC
    JC-Hosting
    HillBilly Politics

  7. #7
    Member
    Join Date
    Oct 2002
    Posts
    751

    Default

    I switched to the openprotect updates, but now spamd keeps failing. I removed the sare rules from /etc/mail/spamassassin.

    spamassassin -D --lint shows these errors:
    Code:
    [8924] dbg: rules: meta test __SARE_HEAD_FALSE has undefined dependency '__FROM_AOL_COM'
    [8924] dbg: rules: meta test __SARE_HEAD_FALSE has undefined dependency '__FROM_AOL_COM'
    [8924] dbg: rules: meta test SARE_BOUNDARY_D12 has undefined dependency 'MIME_BOUND_DIGITS_15'
    [8924] dbg: rules: meta test SARE_RD_SAFE has undefined dependency 'SARE_RD_SAFE_MKSHRT'
    [8924] dbg: rules: meta test SARE_RD_SAFE has undefined dependency 'SARE_RD_SAFE_GT'
    [8924] dbg: rules: meta test SARE_RD_SAFE has undefined dependency 'SARE_RD_SAFE_TINY'
    [8924] dbg: rules: meta test SARE_CIT_BLOCKER has undefined dependency 'USER_IN_WHITELIST'
    [8924] dbg: rules: meta test SARE_SUN_BLOCKER has undefined dependency 'USER_IN_WHITELIST'
    [8924] dbg: rules: meta test SARE_SUB_INET_PHARM has undefined dependency 'ONLINE_PHARMACY'
    [8924] dbg: rules: meta test SARE_FPP_BLOCKER has undefined dependency 'USER_IN_WHITELIST'
    [8924] dbg: rules: meta test SARE_FEB_BLOCKER has undefined dependency 'USER_IN_WHITELIST'
    [8924] dbg: rules: meta test SARE_OBFU_CIALIS has undefined dependency 'SARE_OBFU_CIALIS2'
    [8924] dbg: rules: meta test LW_STOCK_SPAM4 has undefined dependency 'MIME_BASE64_TEXT'
    [8924] dbg: rules: meta test __IMG_ONLY has undefined dependency 'HTML_IMAGE_ONLY_04'
    [8924] dbg: rules: meta test __IMG_ONLY has undefined dependency 'HTML_IMAGE_ONLY_08'
    [8924] dbg: rules: meta test __IMG_ONLY has undefined dependency 'HTML_IMAGE_ONLY_12'
    [8924] dbg: rules: meta test __IMG_ONLY has undefined dependency 'HTML_IMAGE_ONLY_16'
    [8924] dbg: rules: meta test __IMG_ONLY has undefined dependency 'HTML_IMAGE_ONLY_20'
    [8924] dbg: rules: meta test __IMG_ONLY has undefined dependency 'HTML_IMAGE_ONLY_24'
    [8924] dbg: rules: meta test __IMG_ONLY has undefined dependency 'HTML_IMAGE_ONLY_28'
    [8924] dbg: rules: meta test SARE_HEAD_SUBJ_RAND has undefined dependency 'SARE_XMAIL_SUSP2'
    [8924] dbg: rules: meta test SARE_HEAD_SUBJ_RAND has undefined dependency 'SARE_HEAD_XAUTH_WARN'
    [8924] dbg: rules: meta test SARE_HEAD_SUBJ_RAND has undefined dependency 'X_AUTH_WARN_FAKED'
    How to fix this? i reinstalled spamassassin, didn't help.

  8. #8
    Member
    Join Date
    Oct 2002
    Posts
    751

    Default

    I had to disable spamassassin because spamd children were increasing the load.

    What is the best way to completely uninstall and do a fresh install of spamassassin? Can I just remove the whole /etc/mail/spamassassin directory? Any other directories I should remove before running: /scripts/perlinstaller --force Mail::SpamAssassin ?
    Last edited by jamesbond; 05-05-2007 at 03:05 AM.

  9. #9
    JC
    JC is offline
    Member
    Join Date
    Nov 2002
    Posts
    88

    Default

    I'm having the same problem on multiple servers.
    Exactly the same error.
    Has anyone found a solution he can share?

    Thanks
    Jose

  10. #10
    Member
    Join Date
    Jul 2003
    Posts
    62

    Default

    All I did was delete my RulesDuJour rules from /etc/mail/spamassassin leaving ...

    Code:
    ./  ../  init.pre  local.cf  sa-update-keys/  v310.pre  v312.pre  v320.pre
    Delete the cron task I had in /etc/cron.daily for updating the rules

    Run sa-update as per Chirpy's post and add a cron.daily job for it.

    Remember to stop and restart spamd.

  11. #11
    Member
    Join Date
    Aug 2002
    Posts
    1,118

    Default

    It looks like running sa-update is also causing some problems. I am having issues with my /var/log/maillog file growing too large due to errors such as:

    Code:
    Malformed UTF-8 character (unexpected non-continuation byte 0x00, immediately after start byte 0xd0) in pattern match (m//) at /var/lib/spamassassin/3.002000/saupdates_openprotect_com/
    filling up the log. Is anybody else that is using sa-update also experiencing this problem?

  12. #12
    Member JamesCTotalWeb's Avatar
    Join Date
    Mar 2005
    Posts
    53

    Default

    Yes we are too ...... Spamassassain seems not to be working at all ... its running but no spam is being caught.
    When they say it can't be done,
    Thats when they call us.
    TotalWeb-INC
    JC-Hosting
    HillBilly Politics

  13. #13
    JC
    JC is offline
    Member
    Join Date
    Nov 2002
    Posts
    88

    Default

    It seems to be a problem in version 3.002000 (previous was 3.001008)

    The UTF8 error comes up on some rules like:

    72_sare_bml_post25x.cf
    70_sare_adult.cf

    and another one I can't recall now.

    Problem is how do we get around this.
    Other posts on this thread didn't solve it for me.

  14. #14
    JC
    JC is offline
    Member
    Join Date
    Nov 2002
    Posts
    88

    Default

    Can someone poiunt me in the right direction to set spamassassin to use the previus rules (3.001008) instead of te new ones.
    The older ones were working well.

    What file / setting should de editted?

    Thanks

  15. #15
    Member
    Join Date
    Aug 2002
    Posts
    1,118

    Default

    Quote Originally Posted by JC View Post
    It seems to be a problem in version 3.002000 (previous was 3.001008)

    The UTF8 error comes up on some rules like:

    72_sare_bml_post25x.cf
    70_sare_adult.cf

    and another one I can't recall now.
    This is the conclusion that I cam to as well. There were some changes made in the SpamAssassin 3.2.0 code and the SARE rules are not yet updated to account for this. You can see the changelog for SpamAssassin 3.2.0 at:

    http://www.nabble.com/forum/ViewPost...85287&framed=y

    I removed the SARE rules downloaded from saupdates.openprotect.com to fix this. I'm not sure if this is recommended, but I have tried it on a few server and it seems to help. This would only work if you are updating your rulesets with:

    /usr/bin/sa-update --nogpg --channel saupdates.openprotect.com

    Code:
    rm -rf /var/lib/spamassassin/3.002000/saupdates_openprotect_com
    rm -f /var/lib/spamassassin/3.002000/saupdates_openprotect_com.cf
    rm -f /var/lib/spamassassin/3.002000/saupdates_openprotect_com.pre
    Again, use do this at your own risk. Perhaps someone with a little more knowledge of the situation will chime in with more information.

+ Reply to Thread
Page 1 of 6 1 2 3 ... LastLast
Similar Threads & Tags
Similar threads

  1. Replies: 0
    Last Post: 11-28-2009, 11:29 PM
  2. cpbackup script throwing errors every morning
    By Man0warr in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-16-2009, 02:40 PM
  3. mysqlopt throwing errors
    By linux.newbie in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-10-2008, 11:28 PM
  4. Replies: 2
    Last Post: 07-22-2008, 10:56 PM
  5. Instalar Spam Assassin y spam box en todas las cuentas!
    By mgrizal in forum Discusión en Español
    Replies: 2
    Last Post: 11-18-2006, 01:10 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube