How to Counter Email Spam
AnsweredHi,
I am using Roundcube and there are more than 5000 emails in Junk folder.
1. Where do I configure the spam rules for the Junk folder?
2. In one of the spam emails that went into the Inbox, I saw the following in the header.
0.0 RCVD_IN_ZEN_BLOCKED_OPENDNS RBL: ADMINISTRATOR NOTICE: The query to
zen.spamhaus.org was blocked due to usage of an
open resolver. See
https://www.spamhaus.org/returnc/pub/
[77.90.156.22 listed in zen.spamhaus.org]
0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL
was blocked. See
http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block
for more information.
[77.90.156.22 listed in list.dnswl.org]
---
Please advise, thanks.
-
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 -
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 -
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 -
Nice!
0
Please sign in to leave a comment.
Comments
4 comments