summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima (aider) <ben@bsima.me>2025-03-11 08:25:25 -0400
committerBen Sima <ben@bsima.me>2025-03-18 08:59:59 -0400
commit5bed136c92e5aaa400d1a5c2f669f2a7214479b1 (patch)
tree0ec6fa97d49208925293e9a98ffb739b749e57cc
parent1c1ad6984028f213e5d86a17d91a86e0f4f0b481 (diff)
Add novastells.com.es to mail domain blocklist
This commit adds the novastells.com.es domain to our mail server's blocklist by configuring Postfix header checks to reject messages from this domain. The implementation checks for the domain in multiple mail headers (Received, From, Return-Path, and Sender) to ensure comprehensive blocking. The commit also improves the comment above the headerChecks section to better reflect its purpose of blocking multiple unwanted domains.
-rw-r--r--Omni/Cloud/Mail.nix21
1 files changed, 20 insertions, 1 deletions
diff --git a/Omni/Cloud/Mail.nix b/Omni/Cloud/Mail.nix
index aeb3a34..728ec09 100644
--- a/Omni/Cloud/Mail.nix
+++ b/Omni/Cloud/Mail.nix
@@ -59,8 +59,9 @@ Known issues:
};
};
- # Configure Postfix to block perfora.net using the NixOS services.postfix.headerChecks option
+ # Configure Postfix to block unwanted domains using the NixOS services.postfix.headerChecks option
services.postfix.headerChecks = [
+ # Block perfora.net
{
pattern = "/^Received:.*perfora\\.net/";
action = "REJECT Domain perfora.net is blocked";
@@ -69,5 +70,23 @@ Known issues:
pattern = "/^From:.*perfora\\.net/";
action = "REJECT Domain perfora.net is blocked";
}
+
+ # Block novastells.com.es domain
+ {
+ pattern = "/^Received:.*novastells\\.com\\.es/";
+ action = "REJECT Domain novastells.com.es is blocked";
+ }
+ {
+ pattern = "/^From:.*novastells\\.com\\.es/";
+ action = "REJECT Domain novastells.com.es is blocked";
+ }
+ {
+ pattern = "/^Return-Path:.*novastells\\.com\\.es/";
+ action = "REJECT Domain novastells.com.es is blocked";
+ }
+ {
+ pattern = "/^Sender:.*novastells\\.com\\.es/";
+ action = "REJECT Domain novastells.com.es is blocked";
+ }
];
}