[Rspamd-Users] Whitelist and blacklist not working?

ouafnico ouafnico at shivaserv.fr
Fri Jan 10 16:18:27 UTC 2020



Hi all,

I'm trying without success to make Rspamd learn for good or bad junks.

I've tried this configuration:

/etc/rspamd/local.d/multimap.conf

local_bl_ip {
   type = "ip";
   map = "$CONFDIR/local.d/local_bl_ip.map.inc";
   symbol = "LOCAL_BL_IP";
   description = "Local ip blacklist";
}
local_bl_from {
  type = "from";
  map = "$CONFDIR/local.d/local_bl_from.map.inc";
  symbol = "LOCAL_BL_FROM";
  description = "Local from blacklist";
}
local_bl_rcpt {
  type = "rcpt";
  map = "$CONFDIR/local.d/local_bl_rcpt.map.inc";
  symbol = "LOCAL_BL_RCPT";
  description = "Local rcpt blacklist";
}
local_wl_ip {
  type = "ip";
  map = "$CONFDIR/local.d/local_wl_ip.map.inc";
  symbol = "LOCAL_WL_IP";
  description = "Local ip whitelist";
}
local_wl_from {
  type = "from";
  map = "$CONFDIR/local.d/local_wl_from.map.inc";
  symbol = "LOCAL_WL_FROM";
  description = "Local from whitelist";
}
local_wl_rcpt {
  type = "rcpt";
  map = "$CONFDIR/local.d/local_wl_rcpt.map.inc";
  symbol = "LOCAL_WL_RCPT";
  description = "Local rcpt whitelist";
}

a metric.conf with:

group "local" {
  symbol "LOCAL_BL_IP" {
    weight = 3;
    description = "Sender ip listed in local ip blacklist";
  }

  symbol "LOCAL_BL_FROM" {
    weight = 3;
    description = "Sender from listed in local from blacklist";
  }

  symbol "LOCAL_BL_RCPT" {
    weight = 3;
    description = "Recipient listed in local rcpt blacklist";
  }

  symbol "LOCAL_WL_IP" {
    weight = -5;
    description = "Sender ip listed in local ip whitelist";
  }

  symbol "LOCAL_WL_FROM" {
    weight = -5;
    description = "Sender from listed in local from whitelist";
  }

  symbol "LOCAL_WL_RCPT" {
    weight = -5;
    description = "Recipient listed in local rcpt whitelist";
  }
}


Then I got the .inc file I complete with for example, ip addresses, or 
*@domain.com, or anaddress at domain.com.

But rspamd seems do not learn...

Any idea?

thanks a lot,


-- 
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.


More information about the Users mailing list