Skip to main content

How to Counter Email Spam

Answered

Comments

4 comments

  • cPRex Jurassic Moderator

    Hey there!  There's two things you could do to help fix this.  The first, and likely most important for your scenario, is to reach out to your hosting provider and get the correct resolvers you can user in /etc/resolv.conf on your machine.  Right now with your public resolver configuration the system won't be able to use spam tools.

    If that doesn't get things working to your satisfaction, 5000 messages in a directory should be a good number to help train SpamAssassin with.  Details on doing that can be found here: https://support.cpanel.net/hc/en-us/articles/360053149353-How-can-I-teach-SpamAssassin-to-identify-more-Spam-email

    0
  • Andy83

    Hi Rex

    /usr/local/cpanel/3rdparty/bin/sa-learn -p /home/$cpusername/.spamassassin/user_prefs --spam /home/$cpusername/mail/$domain.tld/$user/.Junk/{cur,new}

    I did the above command but the output was 

    Learned tokens from 0 message(s) (0 message(s) examined)

    0
  • Andy83

    Ok I found a fix for it by using 

    /usr/local/cpanel/3rdparty/bin/sa-learn -p /home/$cpusername/.spamassassin/user_prefs --spam /home/$cpusername/mail/$domain.tld/$user/.spam/{cur,new}

    --

    Learned tokens from 2662 message(s) (4492 message(s) examined)

    0
  • cPRex Jurassic Moderator

    Nice!

    0

Please sign in to leave a comment.