diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-04-27 13:32:07 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-04-27 13:32:07 +0200 |
commit | bf23c34ff47ee937262d562ff95a3806ca96b970 (patch) | |
tree | cd1b103f158e741f0e35e701c0bdab3e5ba7c569 | |
parent | f235052f656bedc0fe114d0fbeebc6c327c7dc88 (diff) | |
download | nixos-bf23c34ff47ee937262d562ff95a3806ca96b970.tar nixos-bf23c34ff47ee937262d562ff95a3806ca96b970.tar.gz nixos-bf23c34ff47ee937262d562ff95a3806ca96b970.tar.bz2 nixos-bf23c34ff47ee937262d562ff95a3806ca96b970.tar.xz nixos-bf23c34ff47ee937262d562ff95a3806ca96b970.zip |
rmail
-rw-r--r-- | custom/uucp.nix | 18 |
1 files changed, 17 insertions, 1 deletions
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 { | |||
170 | }); | 170 | }); |
171 | }; | 171 | }; |
172 | 172 | ||
173 | environment.systemPackages = with pkgs; [uucp]; | 173 | environment.systemPackages = with pkgs; [ |
174 | uucp | ||
175 | (pkgs.writeScriptBin "rmail" '' | ||
176 | #!${pkgs.stdenv.shell} | ||
177 | |||
178 | # Dummy UUCP rmail command for postfix/qmail systems | ||
179 | |||
180 | IFS=" " read junk from junk junk junk junk junk junk junk relay | ||
181 | |||
182 | case "$from" in | ||
183 | *[@!]*) ;; | ||
184 | *) from="$from@$relay";; | ||
185 | esac | ||
186 | |||
187 | exec /var/setuid-wrappers/sendmail -i -f "$from" -- "$@" | ||
188 | '') | ||
189 | ]; | ||
174 | }; | 190 | }; |
175 | } | 191 | } |