diff options
author | Ben Sima <ben@bsima.me> | 2025-04-08 08:53:30 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2025-04-15 15:22:43 -0400 |
commit | 45cd9e8fb9052a4f9bd38498bcf5bb493bd15141 (patch) | |
tree | c77b859fba0b995f4cf9ef9830681f2842fc4f9f /Omni/Cloud/Mail.nix | |
parent | a20827fc0a7eb9a5bc9ae559b426b8c3f357ce3c (diff) |
Fix regex patterns in email block list
I guess GPT-4 or whatever assistant I used got the wrong syntax the first time.
Diffstat (limited to 'Omni/Cloud/Mail.nix')
-rw-r--r-- | Omni/Cloud/Mail.nix | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/Omni/Cloud/Mail.nix b/Omni/Cloud/Mail.nix index 61ccf30..bccf5db 100644 --- a/Omni/Cloud/Mail.nix +++ b/Omni/Cloud/Mail.nix @@ -63,48 +63,59 @@ Known issues: services.postfix.headerChecks = [ # Block perfora.net { - pattern = "/^Received:.*perfora\\.net/"; + pattern = "^Received:.*perfora\\.net"; action = "REJECT Domain perfora.net is blocked"; } { - pattern = "/^From:.*perfora\\.net/"; + pattern = "^From:.*perfora\\.net"; action = "REJECT Domain perfora.net is blocked"; } # Block novastells.com.es domain { - pattern = "/^Received:.*novastells\\.com\\.es/"; + pattern = "^Received:.*novastells\\.com\\.es"; action = "REJECT Domain novastells.com.es is blocked"; } { - pattern = "/^From:.*novastells\\.com\\.es/"; + pattern = "^From:.*novastells\\.com\\.es"; action = "REJECT Domain novastells.com.es is blocked"; } { - pattern = "/^Return-Path:.*novastells\\.com\\.es/"; + pattern = "^Return-Path:.*novastells\\.com\\.es"; action = "REJECT Domain novastells.com.es is blocked"; } { - pattern = "/^Sender:.*novastells\\.com\\.es/"; + pattern = "^Sender:.*novastells\\.com\\.es"; action = "REJECT Domain novastells.com.es is blocked"; } # Block optaltechtld.com domain { - pattern = "/^Received:.*optaltechtld\\.com/"; + pattern = "^Received:.*optaltechtld\\.com"; action = "REJECT Domain optaltechtld.com is blocked"; } { - pattern = "/^From:.*optaltechtld\\.com/"; + pattern = "^From:.*optaltechtld\\.com"; action = "REJECT Domain optaltechtld.com is blocked"; } { - pattern = "/^Return-Path:.*optaltechtld\\.com/"; + pattern = "^Return-Path:.*optaltechtld\\.com"; action = "REJECT Domain optaltechtld.com is blocked"; } { - pattern = "/^Sender:.*optaltechtld\\.com/"; + pattern = "^Sender:.*optaltechtld\\.com"; action = "REJECT Domain optaltechtld.com is blocked"; } ]; + + # Increase memory limits for mbsync, otherwise it runs out of space trying to + # sync large mailboxes (like dev/INBOX) + services.dovecot2.extraConfig = '' + service imap { + vsz_limit = 4G + } + service quota-status { + vsz_limit = 4G + } + ''; } |