about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2022-03-27 00:41:00 +0000
committerAlyssa Ross <hi@alyssa.is>2022-03-30 13:00:27 +0000
commit401e8e971f1763e8f000e1ec90ab549a3fca4421 (patch)
tree714b3b299731558958437c482176c445a1e48a89
parentd080e45a22937582d5cd7ad95dfbbb1d0a9780c2 (diff)
downloadnixlib-401e8e971f1763e8f000e1ec90ab549a3fca4421.tar
nixlib-401e8e971f1763e8f000e1ec90ab549a3fca4421.tar.gz
nixlib-401e8e971f1763e8f000e1ec90ab549a3fca4421.tar.bz2
nixlib-401e8e971f1763e8f000e1ec90ab549a3fca4421.tar.lz
nixlib-401e8e971f1763e8f000e1ec90ab549a3fca4421.tar.xz
nixlib-401e8e971f1763e8f000e1ec90ab549a3fca4421.tar.zst
nixlib-401e8e971f1763e8f000e1ec90ab549a3fca4421.zip
modules/spectrum/postfix: don't spam check local mail
One advantage of this is that client_* variables passed to the MDA
will be set correctly for messages submitted over SMTP.
-rw-r--r--modules/server/spectrum/postfix/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/server/spectrum/postfix/default.nix b/modules/server/spectrum/postfix/default.nix
index d9dd26272eec..ba2ef7cf389b 100644
--- a/modules/server/spectrum/postfix/default.nix
+++ b/modules/server/spectrum/postfix/default.nix
@@ -37,6 +37,13 @@
       action = "REJECT HTML mail is not supported.  See https://useplaintext.email for instructions."; }
   ];
 
+  # Local mail can be submitted without being filtered through SpamAssassin.
+  services.postfix.masterConfig."::1:smtp" = {
+    type = "inet";
+    private = false;
+    command = "smtpd";
+  };
+
   services.postfix.masterConfig.smtp_inet.args =
     [ "-o" "content_filter=spamassassin" ];