aboutsummaryrefslogtreecommitdiff
path: root/systems/eldiron/mail/rspamd.nix
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2024-02-11 00:32:46 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2024-02-24 12:24:57 +0100
commite612b8698652b47c13cf8c213a14ebec2b8ce2dc (patch)
tree4c955b93cda4964a8ddb711aa113bdb32cf03fdf /systems/eldiron/mail/rspamd.nix
parentd5ce77bd3af16b6e107a2d59ea42f658df265eb5 (diff)
downloadNix-e612b8698652b47c13cf8c213a14ebec2b8ce2dc.tar.gz
Nix-e612b8698652b47c13cf8c213a14ebec2b8ce2dc.tar.zst
Nix-e612b8698652b47c13cf8c213a14ebec2b8ce2dc.zip
Fix local delivery considered spam in rspamd
Diffstat (limited to 'systems/eldiron/mail/rspamd.nix')
-rw-r--r--systems/eldiron/mail/rspamd.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/systems/eldiron/mail/rspamd.nix b/systems/eldiron/mail/rspamd.nix
index a300cc5..8a2b5f3 100644
--- a/systems/eldiron/mail/rspamd.nix
+++ b/systems/eldiron/mail/rspamd.nix
@@ -41,6 +41,13 @@
41 ''; 41 '';
42 }; 42 };
43 locals = { 43 locals = {
44 "composites.conf".text = ''
45 # Local delivered e-mails have both SMTP AUTH and only one Received
46 "LOCAL_DELIVERED_EMAILS" = {
47 expression = "RCVD_VIA_SMTP_AUTH and ONCE_RECEIVED";
48 score = -10.0;
49 }
50 '';
44 "redis.conf".text = '' 51 "redis.conf".text = ''
45 servers = "${config.myEnv.mail.rspamd.redis.socket}"; 52 servers = "${config.myEnv.mail.rspamd.redis.socket}";
46 db = "${config.myEnv.mail.rspamd.redis.db}"; 53 db = "${config.myEnv.mail.rspamd.redis.db}";