global blocklist domains for e-mail

freakie

Verified User
Joined
Jan 16, 2006
Messages
86
Location
Apeldoorn, Netherlands
Hi,

i wanted to make a global blacklist in which domains are present from which we dont any e-mails.

we are using rspamd so i did this:

create the file in /etc/rspamd/local.d/blacklist.conf
contents:

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


then i created the file /etc/rspamd/local.d/blacklist.map
contents:

domain1.com.
domain2.com


but this isnt working.

anyone gat an idea?
 
I don't work with rspamd so I have no clue if you definately want it in rspamd.
But if you really don't want mail from domains then I use the /etc/virtual/blacklist_domains file for that, then they are already blocked at Exim before spamcheck is even done if I'm correct.
Some form of wildcard and regexp can be used in there too if done correctly.
 
Last edited:
Back
Top