Configuring Spamhaus DQS
First, ensure the tenant’slocal.cf file is correctly configured. Using Expert Editor, in the activeguard/core/startup_cfg/spamass/local.cf file, make sure that:
skip_uribl_checksis set to0to enable theURIDNSBLpluginskip_rbl_checksis set to0to enable theRealtime Blackhole Listchecks- the
dns_query_restrictionlist does not contain the valuespamhaus.netbut it does containspamhaus.org
local.cf.
Some keys are Hash Blocklist (HBL) enabled, some are not. Where to write the key depends on whether the key is HBL enabled and whether you want to use this feature. Therefore, configure Spamhaus either with or without HBL as described below.
Using Spamhaus DQS with HBL
- Using Expert Editor, create a new file at
activeguard/core/startup_cfg/spamass/spamhaus_hbl_license.txt. - Populate it with your key and only your key.
Using Spamhaus DQS without HBL
- Using Expert Editor, create a new file at
activeguard/core/startup_cfg/spamass/spamhaus_license.txt. - Populate it with your key and only your key.
Triggering the configuration script
After you have completed the steps above, click Publish. Then restart theag_core container, because the Spamhaus files under activeguard/core/startup_cfg/ require an MTA restart:
stdout log of core (either use Loki or the command line docker compose logs core) for the line containing the message Spamassassin DQS config successfully linted. This indicates that the configuration files have been successfully written to the Spamassassin configuration directory and are valid.
The communication runs via DNS, therefore you don’t have to change your firewall config.
Testing
- Run the Spamhaus Blocklist Tester (BLT).
-
Under
Data Query Service Test, enter your DQS key, and for theTest TypeselectBoth, then enter a guarded email address for your tenant to which you have access and permission to use. The tests will display as failed in the BLT itself, as they are successfully delivered to the tenant’s mailserver, but are filtered out later by xorlab Security Platform. The BLT cannot know this. -
The mailbox will receive several emails from
test@unlisted.blt.spamhaus.net:- If the key supplied is HBL-enabled, these should all be quarantined and tagged as
#blacklistedexternal. - If the key is not HBL-enabled, these should all be quarantined and tagged as
#blacklistedexternalexcept those withhblin the subject; for example,BLT DQS Content Test Email (19843:248226:hbl-dqs-body-cc-wallet).
- If the key supplied is HBL-enabled, these should all be quarantined and tagged as
Disabling Spamhaus
You should disable Spamhaus when its license expires to avoid any issues:-
Remove the license file—either
spamhaus_hbl_license.txtorspamhaus_license.txt—fromactiveguard/core/startup_cfg/spamass/in Expert Editor. -
While in Expert Editor, open
activeguard/core/startup_cfg/spamass/local.cfand setskip_rbl_checksandskip_uribl_checksto1. -
Click Publish, then restart the container: