Til

Blacklist domains in Rspamd

Posted:

If your Rspamd server seems to fail with a certain domain because it has all the DKIM, SPF and DMARC records perfect you can blacklist those domains quite easily.

Create your multimap.conf

Create a new file /etc/rspamd/local.d/multimap.conf and enter the following code:

reject_content {
        type = "content";
        filter = "full";
        map = "/etc/rspamd/local.d/content.map";
        symbol = "REJECT_CONTENT";
        score = 10.0;
        prefilter = true;
        regexp = true;
}

After this create a file names content.map with following code. The blank line at the end has to exist… no idea why, maybe i will learn it one day.

.domain.tld.
(blank line MUST BE)

Find more information here: rspamd.com/doc/modules/multimap.html