From bf23c34ff47ee937262d562ff95a3806ca96b970 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 27 Apr 2016 13:32:07 +0200 Subject: rmail --- custom/uucp.nix | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/custom/uucp.nix b/custom/uucp.nix index 39c2999c..602f95fd 100644 --- a/custom/uucp.nix +++ b/custom/uucp.nix @@ -170,6 +170,22 @@ in { }); }; - environment.systemPackages = with pkgs; [uucp]; + environment.systemPackages = with pkgs; [ + uucp + (pkgs.writeScriptBin "rmail" '' + #!${pkgs.stdenv.shell} + + # Dummy UUCP rmail command for postfix/qmail systems + + IFS=" " read junk from junk junk junk junk junk junk junk relay + + case "$from" in + *[@!]*) ;; + *) from="$from@$relay";; + esac + + exec /var/setuid-wrappers/sendmail -i -f "$from" -- "$@" + '') + ]; }; } -- cgit v1.2.3