mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-01-30 16:39:51 +08:00
[Rspamd] Enable more modules
This commit is contained in:
parent
66a3df16ed
commit
07a05b9363
6
data/conf/rspamd/local.d/asn.conf
Normal file
6
data/conf/rspamd/local.d/asn.conf
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
provider_type = "rspamd";
|
||||||
|
provider_info {
|
||||||
|
ip4 = "asn.rspamd.com";
|
||||||
|
ip6 = "asn6.rspamd.com";
|
||||||
|
}
|
||||||
|
symbol = "ASN";
|
24
data/conf/rspamd/local.d/ip_score.conf
Normal file
24
data/conf/rspamd/local.d/ip_score.conf
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
# how each action is treated in scoring
|
||||||
|
actions {
|
||||||
|
reject = 1.0;
|
||||||
|
"add header" = 0.25;
|
||||||
|
"rewrite subject" = 0.25;
|
||||||
|
"no action" = 1.0;
|
||||||
|
}
|
||||||
|
# how each component is evaluated
|
||||||
|
scores {
|
||||||
|
asn = 0.5;
|
||||||
|
country = 0.1;
|
||||||
|
ipnet = 0.8;
|
||||||
|
ip = 1.0;
|
||||||
|
}
|
||||||
|
asn_prefix = "a:";
|
||||||
|
country_prefix = "c:";
|
||||||
|
hash = "ip_score";
|
||||||
|
ipnet_prefix = "n:";
|
||||||
|
lower_bound = 10;
|
||||||
|
metric = "default";
|
||||||
|
max_score = 10;
|
||||||
|
min_score = -5;
|
||||||
|
score_divisor = 10;
|
||||||
|
symbol = "IP_SCORE";
|
26
data/conf/rspamd/local.d/url_reputation.conf
Normal file
26
data/conf/rspamd/local.d/url_reputation.conf
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# Key prefix for redis - default "Ur."
|
||||||
|
key_prefix = "Ur.";
|
||||||
|
# Symbols to insert - defaults as shown
|
||||||
|
symbols {
|
||||||
|
white = "URL_REPUTATION_WHITE";
|
||||||
|
black = "URL_REPUTATION_BLACK";
|
||||||
|
grey = "URL_REPUTATION_GREY";
|
||||||
|
neutral = "URL_REPUTATION_NEUTRAL";
|
||||||
|
}
|
||||||
|
# DKIM/DMARC/SPF allow symbols - defaults as shown
|
||||||
|
foreign_symbols {
|
||||||
|
dmarc = "DMARC_POLICY_ALLOW";
|
||||||
|
dkim = "R_DKIM_ALLOW";
|
||||||
|
spf = "R_SPF_ALLOW";
|
||||||
|
}
|
||||||
|
# SURBL metatags to ignore - default as shown
|
||||||
|
ignore_surbl = ["URIBL_BLOCKED", "DBL_PROHIBIT", "SURBL_BLOCKED"];
|
||||||
|
# Amount of samples required for scoring - default 5
|
||||||
|
threshold = 5;
|
||||||
|
# Maximum number of TLDs to update reputation on (default 1)
|
||||||
|
update_limit = 1;
|
||||||
|
# Maximum number of TLDs to query reputation on (default 100)
|
||||||
|
query_limit = 100;
|
||||||
|
# If true, try to find most 'relevant' URL (default true)
|
||||||
|
relevance = true;
|
||||||
|
enabled = true;
|
Loading…
Reference in New Issue
Block a user