From b7944429b8341378d50e0219bd7ed1726b3249f2 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Tue, 13 Dec 2022 12:18:03 +0100 Subject: [PATCH] fix local mail delivery via sendmail --- vm-nextcloud.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vm-nextcloud.nix b/vm-nextcloud.nix index 5878421..120d503 100644 --- a/vm-nextcloud.nix +++ b/vm-nextcloud.nix @@ -1,4 +1,4 @@ -{ pkgs, config, ... }: { +{ pkgs, config, lib, options, ... }: { nixpkgs = { overlays = [ @@ -46,6 +46,10 @@ enable = true; hostname = "localhost"; primaryDomain = "localhost"; + # Disable any sender validation checks + config = lib.concatStrings ( + builtins.match "(.*)authorize_sender.*identity\n[ ]+\}(.*)" options.services.maddy.config.default + ); }; # Configure local mail delivery