Updated configs
This commit is contained in:
3
etc/rspamd/local.d/actions.conf
Normal file
3
etc/rspamd/local.d/actions.conf
Normal file
@ -0,0 +1,3 @@
|
||||
reject = 15;
|
||||
add_header = 8;
|
||||
greylist = 7;
|
11
etc/rspamd/local.d/antivirus.conf
Normal file
11
etc/rspamd/local.d/antivirus.conf
Normal file
@ -0,0 +1,11 @@
|
||||
clamav {
|
||||
# Scan whole message
|
||||
scan_mime_parts = false;
|
||||
#scan_text_mime = true;
|
||||
#scan_image_mime = true;
|
||||
symbol = "CLAM_VIRUS";
|
||||
type = "clamav";
|
||||
log_clean = true;
|
||||
servers = "/var/run/clamav/clamd.ctl";
|
||||
max_size = 20971520;
|
||||
}
|
16
etc/rspamd/local.d/arc.conf
Normal file
16
etc/rspamd/local.d/arc.conf
Normal file
@ -0,0 +1,16 @@
|
||||
sign_authenticated = true;
|
||||
sign_local = true;
|
||||
domain {
|
||||
danwin1210.de {
|
||||
selectors [
|
||||
{
|
||||
path: "/var/lib/rspamd/dkim/danwin1210.de-rsa";
|
||||
selector: "20211204-rsa";
|
||||
},
|
||||
{
|
||||
path: "/var/lib/rspamd/dkim/danwin1210.de-ed25519";
|
||||
selector: "20211204-ed25519";
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
1
etc/rspamd/local.d/classifier-bayes.conf
Normal file
1
etc/rspamd/local.d/classifier-bayes.conf
Normal file
@ -0,0 +1 @@
|
||||
autolearn = true;
|
20
etc/rspamd/local.d/dkim_signing.conf
Normal file
20
etc/rspamd/local.d/dkim_signing.conf
Normal file
@ -0,0 +1,20 @@
|
||||
use_domain = "header";
|
||||
use_domain_sign_networks = "header";
|
||||
use_domain_sign_local = "header";
|
||||
allow_username_mismatch = true;
|
||||
allow_hdrfrom_mismatch = true;
|
||||
try_fallback = false;
|
||||
domain {
|
||||
danwin1210.de {
|
||||
selectors [
|
||||
{
|
||||
path: "/var/lib/rspamd/dkim/danwin1210.de-rsa";
|
||||
selector: "20211204-rsa";
|
||||
},
|
||||
{
|
||||
path: "/var/lib/rspamd/dkim/danwin1210.de-ed25519";
|
||||
selector: "20211204-ed25519";
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
1
etc/rspamd/local.d/greylist.conf
Normal file
1
etc/rspamd/local.d/greylist.conf
Normal file
@ -0,0 +1 @@
|
||||
enabled = false;
|
15
etc/rspamd/local.d/groups.conf
Normal file
15
etc/rspamd/local.d/groups.conf
Normal file
@ -0,0 +1,15 @@
|
||||
symbols {
|
||||
"CLAM_VIRUS" {
|
||||
"weight": 10.0
|
||||
}
|
||||
"CLAM_VIRUS_ENCRYPTED" {
|
||||
"weight": 1.0
|
||||
}
|
||||
"CLAM_VIRUS_MACRO" {
|
||||
"weight": 1.0
|
||||
}
|
||||
"AUTHENTICATED_USER" {
|
||||
description = "authenticated user should receive higher scoring to prevent outgoing spam";
|
||||
score = 5.0;
|
||||
}
|
||||
}
|
4
etc/rspamd/local.d/logging.inc
Normal file
4
etc/rspamd/local.d/logging.inc
Normal file
@ -0,0 +1,4 @@
|
||||
type = console
|
||||
systemd = true
|
||||
color = true
|
||||
level = notice
|
3
etc/rspamd/local.d/options.inc
Normal file
3
etc/rspamd/local.d/options.inc
Normal file
@ -0,0 +1,3 @@
|
||||
dns {
|
||||
enable_dnssec = true;
|
||||
}
|
1
etc/rspamd/local.d/phishing.conf
Normal file
1
etc/rspamd/local.d/phishing.conf
Normal file
@ -0,0 +1 @@
|
||||
phishtank_enabled = false;
|
24
etc/rspamd/local.d/ratelimit.conf
Normal file
24
etc/rspamd/local.d/ratelimit.conf
Normal file
@ -0,0 +1,24 @@
|
||||
whitelisted_rcpts = ["postmaster", "mailer-daemon", "daniel@danwin1210.de"]
|
||||
whitelisted_user = ["daniel@danwin1210.de"]
|
||||
rates {
|
||||
to = {
|
||||
bucket = {
|
||||
burst = 20;
|
||||
rate = 1 / 1m;
|
||||
}
|
||||
}
|
||||
sending_limit_2_per_min {
|
||||
selector = 'user.lower.append("sending_limit_2_per_min")';
|
||||
bucket = {
|
||||
burst = 20;
|
||||
rate = 2 / 1m;
|
||||
}
|
||||
}
|
||||
sending_limit_500_per_day {
|
||||
selector = 'user.lower.append("sending_limit_500_per_day")';
|
||||
bucket = {
|
||||
burst = 400;
|
||||
rate = 50 / 3h;
|
||||
}
|
||||
}
|
||||
}
|
1
etc/rspamd/local.d/redis.conf
Normal file
1
etc/rspamd/local.d/redis.conf
Normal file
@ -0,0 +1 @@
|
||||
servers = "127.0.0.1";
|
5
etc/rspamd/local.d/statistics_group.conf
Normal file
5
etc/rspamd/local.d/statistics_group.conf
Normal file
@ -0,0 +1,5 @@
|
||||
symbols {
|
||||
"BAYES_SPAM" {
|
||||
"score": 7.0
|
||||
}
|
||||
}
|
10
etc/rspamd/local.d/worker-fuzzy.inc
Normal file
10
etc/rspamd/local.d/worker-fuzzy.inc
Normal file
@ -0,0 +1,10 @@
|
||||
count = 1;
|
||||
keypair {
|
||||
privkey = "YOUR_PRIVATE_KEY";
|
||||
type = "kex";
|
||||
algorithm = "curve25519";
|
||||
id = "YOUR_ID";
|
||||
pubkey = "YPUR_PUBLIC_KEY";
|
||||
encoding = "base32";
|
||||
}
|
||||
encrypted_only = true;
|
1
etc/rspamd/local.d/worker-proxy.inc
Normal file
1
etc/rspamd/local.d/worker-proxy.inc
Normal file
@ -0,0 +1 @@
|
||||
bind_socket = "*:11332";
|
Reference in New Issue
Block a user