Skip to main content

Anti-spam DNSBL by BOates [CHANGES REQUIRED TO WORK WITH SPAMASSASSIN 3.4.2 or later in v76+]

Comments

86 comments

  • Augusto Will
    its working in these days?
    0
  • Rodrigo Gomes
    its working in these days?

    The author has not replied since May. I think it is not reliable to use this blacklist right now.
    0
  • brt
    I believe this RBL is still working, but I ran across one like it -- actually several, with different time constraints -- from SpamEatingMonkey. Here's their ten day new domain RBL. There are also SEM-FRESH which is 5 days, SEM-FRESH15, and SEM-FRESH30 available. [I am not in any way affiliated with either SpamEatingMonkey or BOates.]
    0
  • Vinayak
    With today's cPanel nightly update, this ACL has stopped working.
    failed to expand ACL string "fresh.dieinafire.com/${perl{trimdomain}{$sender_address_domain}}": Can't locate Mail/SpamAssassin/Util/RegistrarBoundaries.pm in @INC (you may need to install the Mail::SpamAssassin::Util::RegistrarBoundaries module)
    0
  • vlee
    Just to let you know this has stopped working properly when cPanel updated to version 76.0.4
    Checking the cause of delivery inability, this was due to custom directives in the Exim Configuration. The following lines : drop !authenticated = * dnslists = fresh.dieinafire.com/${perl{trimdomain}{$sender_address_domain}} message = Fresh Domain Blocked - [${perl{trimdomain}{$sender_address_domain}}] is listed on (fresh.dieinafire.com) Which were located under section : custom_begin_mail_post Initially resulted in error along the following lines. 2018-11-06 11:21:10 H=(mail.asthenervestop.icu) [192.119.96.109]:33352 temporarily rejected MAIL : failed to expand ACL string "fresh.dieinafire.com/${perl{trimdomain}{$sender_address_domain}}": Can't locate Mail/SpamAssassin/Util/RegistrarBoundaries.pm in @INC (you may need to install the Mail::SpamAssassin::Util::RegistrarBoundaries module) (@INC contains: /usr/local/cpanel /etc/exim/perl /usr/local/cpanel /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/x86_64-linux-64int /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/5.26.0/x86_64-linux-64int /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/5.26.0 /opt/cpanel/perl5/526/site_lib/x86_64-linux-64int /opt/cpanel/perl5/526/site_lib) at /etc/exim.pl.local line 1963. There was a SpamAssassin update in which the module was deprecated and replaced as shown here : https://www.gsp.com/cgi-bin/man.cgi?section=3&topic=Mail::SpamAssassin::Util::RegistrarBoundaries
    I had no choice to remove this from my servers due the fact I was not able to receive any emails at all.
    0
  • cPanelNick
    The SpamAssassin functionality this tool is using was deprecated in version 3.4.1 and removed in version 3.4.2 because it is now provided by another method. Mail::SpamAssassin::Util::RegistrarBoundaries(3) - domain delegation rules This module is DEPRECATED AND REPLACED WITH Mail::SpamAssassin::RegistryBoundaries !! DO NOT USE. This is left as transition fallback for third party plugins. It will be removed in the future but all functionality has been transitioned to Mail::SpamAssassin::RegistryBoundaries and the TLD updates via 20_aux_tlds.cf delivered via sa-update with version 3.4.1 As this plugin has not yet been updated to work with the latest version of SpamAssassin, the only option at this time is to uninstall it when upgrading to a version of cPanel that bundles SpamAssassin 3.4.2 (v76+) in order to ensure mail continues to function.
    0
  • BOates
    Hey folks, The modifications to /usr/local/cpanel/etc/exim/perl/trimdomain to become compliant with SpamAssassin 3.4.2 / cPanel & WHM v76 would be:
    sub trimdomain { require Mail::SpamAssassin::RegistryBoundaries; my $domain = shift; my $rb = new Mail::SpamAssassin::RegistryBoundaries; return $rb->trim_domain($domain); }
    I wasn't aware that anyone was really making much use of this still, although I continue to use it for personal use. The DNSBL has been in continuous operation since the post was made with no plans to stop operation. Admittedly, I hadn't been keeping up with cPanel & WHM changes and this caught me by surprise. My apologies.
    0
  • vlee
    Can you please post new steps for new install for cPanel version 76 for those who want to use it.
    0
  • BOates
    I am unable to edit old posts myself, but it looks like one of the cPanel staff members (cPanelMichael, it looks like) already updated the original post in this thread with the changes. So the original post is now accurate again.
    0
  • vlee
    Thank you This helps people who still want to use it or those who are new that want to use it.
    0
  • zoltanpaszinger
    Hello, is this works together with ConfigServer MailScanner?
    0
  • cbverneo
    I am unable to edit old posts myself, but it looks like one of the cPanel staff members (cPanelMichael, it looks like) already updated the original post in this thread with the changes. So the original post is now accurate again.

    Any plan to share your code? Due to my bandwidth speed and latency limitation, I am thinking to install it on my own network, so the DNSBL query can be local not going to your server
    0
  • Fiuza2019
    Does it work with version 80.0.13? Has anyone succeeded to make it work these days? It looks like a very good solution but I tried to install and tests was unsuccessful. BR.
    0
  • Kristina54
    That's awesome. Thanks for this. I'll let you know how it goes . I just added this to my server and it's working superbly
    0
  • sparek-3
    Sorry to dig up an old thread - but seems relevant here. It seems SpamAssassin updated at some point and using Mail::SpamAssassin::RegistryBoundaries started to generate errors: [font="courier new">config: registryboundaries: no tlds defined, need to run sa-update In the exim_mainlog. Or maybe it's something specific to my setup. Anybody else seeing this in their logs?
    0
  • ddaddy
    Yes I am also getting these errors in the exam_mainlog. I guess that explains why I have started getting a load of spam again, and is also a testament to how good this method of spam blocking is. I wish CPanel would integrate this into WHM. I patiently await any ideas on how to get it working again.
    0
  • cPRex Jurassic Moderator
    @sparek-3 - when I've seen that issue in the past, we've just reinstalled SpamAssassin as that indicates it's missing some of the required tools. We have a guide for performing this work here, so I'd recommend trying that and seeing if that gets things working:
    0
  • ddaddy
    My previous message seems to be pending moderator approval for some reason, but I have tried reinstalling SpamAssassin and will see how it works over the next day. Thanks
    0
  • ddaddy
    No, it didn't seem to work. I just had another spam email with the same log entry config: registryboundaries: no tlds defined, need to run sa-update
    0
  • cPRex Jurassic Moderator
    Until you reach 5 messages on the forums they have to be manually approved, so that's why you're seeing a delay. If you're still seeing that issue it might be best to open a ticket with our team so we can check that directly on the system for you. If you do open a ticket, please post the number here so I can follow along and keep this thread updated.
    0
  • sparek-3
    The issue is related to the use of [font="courier new">Mail::SpamAssassin::RegistryBoundaries in the trimdomain subroutine that is added in [font="courier new">/usr/local/cpanel/etc/exim/perl/trimdomain I'm not exactly sure what the trimdomain subroutine is doing and why [font="courier new">Mail::SpamAssassin::RegistryBoundaries has to be used. Perhaps whatever this subroutine is doing could be accomplished without the use of [font="courier new">Mail::SpamAssassin::RegistryBoundaries For now, I've just disabled this blacklist. I'm not sure how relevant it is any more anyway. Seems this issue has been around for quite some time. Although the recent update to cPanel seemed to have caused some havoc with this blacklist and Mailman mailing lists. We had Mailman messages stuck in queue and just constantly being resent. That's what initially brought me to this.
    0
  • ddaddy
    This hasn"t caused any mails to be stuck in my mail queue. I"ve noticed a dramatic increase in spam in the last week though.
    0
  • ddaddy
    I've done some more digging on this issue, and the release notes for SpamAssassin v3.4.3 say: - RegistryBoundaries did not load 20_aux_tlds.cf properly in older versions. Old hardcoded list is now removed and RB will print "no tlds defined, need to run sa-update" unless it can find list from config files.
    So it seems
    trimdomin
    used to use a hardcoded list of TLDs but now relies on an updatable list. It says we should run
    sa-update
    which I located at
    /usr/local/cpanel/3rdparty/perl/532/bin/
    and ran, but I am still getting the same error. I tried restarting spamd with
    /usr/local/cpanel/scripts/restartsrv_spamd
    but no dice. Anyone more familiar with SpamAssassin and the CPanel config? ps. @cPRex I have over 50 messages since 2015 yet my new messages are still pending approval.
    0
  • cPRex Jurassic Moderator
    UPDATE - this thread was in a Forum that is no longer getting much use, so all new replies were moderated. I've adjusted this now. It might also be a good idea to submit a ticket so we can check that SpamAssassin issue on the machine directly.
    0
  • ddaddy
    Thanks @cPRex i've opened a support request for this (#94312230)
    0
  • cPRex Jurassic Moderator
    Thanks for that - I'm following along with that ticket on my end now and I'll make sure to keep this thread updated.
    0

Please sign in to leave a comment.