Loading nixos/modules/services/mail/opensmtpd.nix +5 −3 Original line number Diff line number Diff line Loading @@ -113,11 +113,13 @@ in source = "${cfg.package}/bin/smtpctl"; }; services.mail.sendmailSetuidWrapper = lib.mkIf cfg.setSendmail (security.wrappers.smtpctl // { services.mail.sendmailSetuidWrapper = lib.mkIf cfg.setSendmail ( security.wrappers.smtpctl // { source = "${sendmail}/bin/sendmail"; program = "sendmail"; }); } ); systemd.tmpfiles.rules = [ "d /var/spool/smtpd 711 root - - -" Loading nixos/tests/opensmtpd.nix +19 −17 Original line number Diff line number Diff line Loading @@ -16,7 +16,8 @@ import ./make-test-python.nix { } ]; }; environment.systemPackages = let environment.systemPackages = let testSendmail = pkgs.writeScriptBin "test-sendmail" '' #!/bin/sh set -euxo pipefail Loading @@ -30,7 +31,8 @@ import ./make-test-python.nix { EOF echo "=========== FINISHED SENDING" >&2 ''; in [ in [ pkgs.opensmtpd testSendmail ]; Loading Loading
nixos/modules/services/mail/opensmtpd.nix +5 −3 Original line number Diff line number Diff line Loading @@ -113,11 +113,13 @@ in source = "${cfg.package}/bin/smtpctl"; }; services.mail.sendmailSetuidWrapper = lib.mkIf cfg.setSendmail (security.wrappers.smtpctl // { services.mail.sendmailSetuidWrapper = lib.mkIf cfg.setSendmail ( security.wrappers.smtpctl // { source = "${sendmail}/bin/sendmail"; program = "sendmail"; }); } ); systemd.tmpfiles.rules = [ "d /var/spool/smtpd 711 root - - -" Loading
nixos/tests/opensmtpd.nix +19 −17 Original line number Diff line number Diff line Loading @@ -16,7 +16,8 @@ import ./make-test-python.nix { } ]; }; environment.systemPackages = let environment.systemPackages = let testSendmail = pkgs.writeScriptBin "test-sendmail" '' #!/bin/sh set -euxo pipefail Loading @@ -30,7 +31,8 @@ import ./make-test-python.nix { EOF echo "=========== FINISHED SENDING" >&2 ''; in [ in [ pkgs.opensmtpd testSendmail ]; Loading