Disable Spamhaus Blocklist (SBL) Lookups In SpamAssassin


INTRODUCTION

SpamAssassin checks multiple Spamhaus DNS lists when scanning email.

This KB article is on how to stop the Spamhaus Blocklist (SBL) rules from increasing the spam score.


READ ME FIRST

This article is provided as a courtesy.
Installing, configuring, and troubleshooting third-party applications is outside the scope of basic support provided by Starburst Services.

We are not liable for any damages and/or data loss.


REQUIRMENTS

  • SSH credentials or File Manager access Logged In as Root
  • Text editor of your choice (The example uses nano)

STEP 1

Open the SpamAssassin configuration with your preferred text editor:

nano /usr/share/spamassassin/local.cf

STEP 2

Add the following 3 lines to the bottom:

RCVD_IN_ZEN 0
RCVD_IN_XBL 0
RCVD_IN_PBL 0

STEP 3

Save the edited file.

In nano, use Ctrl-O to Save, and Ctrl-X to Exit.


STEP 4

Run the following commands:

sa-update
systemctl restart postfix dovecot spamassassin

Configuration is complete.

You are ready to go.


Thanks for learning with Starburst Services.

Learn more about our services


KB Article Created: 2024-07-10

Thanks to the 2 articles from Zachary Karr and CWP for which this article is based on.

This article was created, edited and updated for use with Control Web Panel (CWP), SpamAssassin and AlmaLinux.

people found this article helpful. What about you?