2024-03-21 15:00:36 +01:00
|
|
|
{ pkgs, lib, ... }:
|
2024-06-22 18:10:12 +02:00
|
|
|
let
|
|
|
|
domains = ''
|
|
|
|
epicgames.com
|
|
|
|
dmail.ai
|
|
|
|
twitter.com
|
|
|
|
x.com
|
|
|
|
gmx.de
|
|
|
|
chess.com
|
|
|
|
'';
|
|
|
|
in
|
2024-03-21 15:00:36 +01:00
|
|
|
{
|
2024-11-19 10:31:29 +01:00
|
|
|
services.rspamd.workers.controller.bindSockets = [
|
|
|
|
{
|
|
|
|
socket = "/run/rspamd/worker-controller.sock";
|
|
|
|
mode = "0660";
|
|
|
|
}
|
|
|
|
];
|
2024-03-21 15:00:36 +01:00
|
|
|
services.rspamd.locals = {
|
2024-06-22 17:26:01 +02:00
|
|
|
"settings.conf".text = ''
|
|
|
|
bogenschiessen {
|
|
|
|
from = "bogensport-jugend@gmx.de";
|
|
|
|
apply {
|
|
|
|
actions {
|
|
|
|
reject = 100.0;
|
|
|
|
greylist = null; # Disable greylisting (from 1.8.1)
|
|
|
|
"add header" = 100.0; # Please note the space, NOT an underscore
|
2024-06-22 15:35:22 +02:00
|
|
|
}
|
|
|
|
}
|
2024-06-22 17:26:01 +02:00
|
|
|
}
|
|
|
|
'';
|
2024-06-22 18:10:12 +02:00
|
|
|
"maps.d/spf_whitelist.inc.local".text = domains;
|
|
|
|
"maps.d/spf_dkim_whitelist.inc.local".text = domains;
|
|
|
|
"maps.d/dmarc_whitelist.inc.local".text = domains;
|
|
|
|
"greylist-whitelist-domains.inc".text = domains;
|
2024-03-21 15:00:36 +01:00
|
|
|
};
|
|
|
|
services.rspamd.extraConfig = ''
|
|
|
|
actions {
|
|
|
|
reject = null;
|
|
|
|
greylist = 4; # Apply greylisting when reaching this score
|
|
|
|
add_header = 4; # Add header when reaching this score
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
}
|