Skip to content

Instantly share code, notes, and snippets.

@kcoyner
Last active June 26, 2020 12:02
Show Gist options
  • Save kcoyner/7ca321545d2532de7c6d9e0952e0fb0c to your computer and use it in GitHub Desktop.
Save kcoyner/7ca321545d2532de7c6d9e0952e0fb0c to your computer and use it in GitHub Desktop.
Whitelisting for rspamd

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

IP_WHITELIST {
      type = "ip";
      prefilter = true;
      map = "/${LOCAL_CONFDIR}/local.d/ip_whitelist.map";
      action = "accept";
}


WHITELIST_SENDER_DOMAIN {
      type = "from";
      filter = "email:domain";
      map = "/etc/rspamd/local.d/whitelist.sender.domain.map";
      score = -6.0
}

/etc/rspamd/local.d/ip_whitelist.map:

10.10.10.201
192.168.10.45

/etc/rspamd/local.d/whitelist.sender.domain.map:

myexample.tld
yourexample.tld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment