[Rspamd-Users] Struggling with a simple domain based custom blacklist

Simba simbalion at tailpuff.net
Sat Nov 17 15:34:28 UTC 2018


Hi, I'm having difficulty simply blocking certain domains from sending
me E-mail.

Using multimap, as was suggested to me by someone on freenode, here is
my multimap.conf:

root:# cat multimap.conf
# Blacklists
local_bl_ip {
  type = "ip";
  map = "$LOCAL_CONFDIR/local.d/local_bl_ip.map.inc";
  symbol = "LOCAL_BL_IP";
  description = "Local ip blacklist";score = 3;
}

local_bl_from {
  type = "from";
  map = "$LOCAL_CONFDIR/local.d/local_bl_from.map.inc";
  symbol = "LOCAL_BL_FROM";
  description = "Local from blacklist";score = 3;
}

header_bl_from {
  type = "header";
  header = "from";
  filter = "email:domain";
  map = "/etc/rspamd/local.d/header_bl_from.map.inc";
  description = "Header From blacklist";
  symbol = "HEADER_BL_FROM";
  action = "reject";
}

local_bl_rcpt {
  type = "rcpt";
  map = "$LOCAL_CONFDIR/local.d/local_bl_rcpt.map.inc";
  symbol = "LOCAL_BL_RCPT";
  description = "Local rcpt blacklist";score = 3;
}

# Whitelists
local_wl_ip {
  type = "ip";
  map = "$LOCAL_CONFDIR/local.d/local_wl_ip.map.inc";
  symbol = "LOCAL_WL_IP";
  description = "Local ip whitelist";score = -5;
}

local_wl_from {
  type = "from";
  map = "$LOCAL_CONFDIR/local.d/local_wl_from.map.inc";
  symbol = "LOCAL_WL_FROM";
  description = "Local from whitelist";score = -5;
}

local_wl_rcpt {
  type = "rcpt";
  map = "$LOCAL_CONFDIR/local.d/local_wl_rcpt.map.inc";
  symbol = "LOCAL_WL_RCPT";
  description = "Local rcpt whitelist";score = -5;
}

And I'm using the header_bl_from filter, the contents of
header_bl_from.map.inc are:

networkworld.com
frogsgorgeous.org
cntnt.networkworld.com

But I am still receiving E-mail from 'Network World'. I also tried
adding another domain which I own temporarily to test and I was still
able to receive email from it.

Any help would be appreciated, this seems like it should be a simple
thing to do but I have had no luck for weeks.

-- 
Simba Lion - https://tailpuff.net
https://keybase.io/simbalion

"Why is a raven like a writing desk?"



More information about the Users mailing list