---
title: 'SH Settings'
url: 'https://docs.danami.com/warden/settings/antispam/plugin-settings/sh'
markdown: 'https://docs.danami.com/warden/settings/antispam/plugin-settings/sh.md'
date: '2026-09-30'
description: 'Data Query Service API key - sh_apikey The Spamhaustech Data Query service API Key. Default: empty Hash Blocklist (HBL) - sh_hbl Enable the hash blocklist (HBL). This blocklist specializes in blocking cryptowallet, malware, email addresses and URLs (including shorteners, redirectors and online file…'
taxonomy:
  category:
    - docs
  tag:
    - spamhaus
---

[](#)  [ Basics ](https://docs.danami.com/warden/)     [ Settings ](https://docs.danami.com/warden/settings)     [ Antispam ](https://docs.danami.com/warden/settings/antispam)     [ Plugin Settings ](https://docs.danami.com/warden/settings/antispam/plugin-settings)      SH Settings    

# SH Settings

**Data Query Service API key** - `sh_apikey`
The Spamhaustech Data Query service API Key.
Default: empty

**Hash Blocklist (HBL)** - `sh_hbl`
Enable the hash blocklist (HBL). This blocklist specializes in blocking cryptowallet, malware, email addresses and URLs (including shorteners, redirectors and online file storage providers). **Important:** The HBL is included in the commercial use key only so it should not be enabled when using a non-commercial key.
Default: 0

## How to get a Spamhaus API key

1. Signup for the non-commercial use key [here](https://www.spamhaus.com/free-trial/sign-up-for-a-free-data-query-service-account/) or the commercial use key [here](https://www.spamhaus.com/free-trial/free-trial-for-data-query-service/)
2. Navigate to `Warden Antispam and Virus Protection -> Plugin Settings -> SH` and enter the license key under Data Query Service API key and press the update button. Warden will create the rules file `/etc/mail/spamassassin/SH.cf` with the default scores.
3. If using a **commercial use key** you can enable the [Hash Blocklist (HBL)](https://www.spamhaus.org/faqs/hash-blocklist-hbl/#what-is-hbl). This blocklist specializes in blocking cryptowallet, malware, email addresses and URLs (including shorteners, redirectors and online file storage providers). Important: The HBL is included in the commercial use key only so it should not be enabled when using a non-commercial key.

## Related Pages

- [SH](https://docs.danami.com/warden/user-guide/antispam-plugins/sh "SH")

 [ ](https://docs.danami.com/warden/command-line-interface/antispam/antispam-plugin-sh)

---

## Navigation

- Parent: [Plugin Settings](https://docs.danami.com/warden/settings/antispam/plugin-settings.md)
- Previous: [RuleStatistics Settings](https://docs.danami.com/warden/settings/antispam/plugin-settings/rulestatistics.md)
- Next: [Shortcircuit Settings](https://docs.danami.com/warden/settings/antispam/plugin-settings/shortcircuit.md)
