summaryrefslogtreecommitdiff
path: root/Omni/Cloud/Mail.nix
diff options
context:
space:
mode:
Diffstat (limited to 'Omni/Cloud/Mail.nix')
-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";
+ }
];
}