]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - systems/eldiron/mail/rspamd.nix
Fix local delivery considered spam in rspamd
[perso/Immae/Config/Nix.git] / systems / eldiron / mail / rspamd.nix
index a300cc531d4049354cf2fecf0a355c0ffe59babb..8a2b5f3348614a1bc7bef60d0ae161363689910f 100644 (file)
         '';
       };
       locals = {
+        "composites.conf".text = ''
+          # Local delivered e-mails have both SMTP AUTH and only one Received
+          "LOCAL_DELIVERED_EMAILS" = {
+            expression = "RCVD_VIA_SMTP_AUTH and ONCE_RECEIVED";
+            score = -10.0;
+          }
+        '';
         "redis.conf".text = ''
           servers = "${config.myEnv.mail.rspamd.redis.socket}";
           db = "${config.myEnv.mail.rspamd.redis.db}";