diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-02-22 15:21:15 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-02-22 15:21:15 +0100 |
commit | 3be2bc7caa2a524a2e2f713af304b4b9647db34a (patch) | |
tree | 8e1fb5687bc79e6d77e4f184f80fd671416549d6 | |
parent | bb20dfd761b9ad171e62270bc7d7c874b88f9e74 (diff) | |
download | nixos-3be2bc7caa2a524a2e2f713af304b4b9647db34a.tar nixos-3be2bc7caa2a524a2e2f713af304b4b9647db34a.tar.gz nixos-3be2bc7caa2a524a2e2f713af304b4b9647db34a.tar.bz2 nixos-3be2bc7caa2a524a2e2f713af304b4b9647db34a.tar.xz nixos-3be2bc7caa2a524a2e2f713af304b4b9647db34a.zip |
Potential to log email
-rw-r--r-- | ymir.nix | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -504,6 +504,17 @@ in rec { | |||
504 | mlmmj unix - n n - - pipe flags=ORhu user=mlmmj argv=${pkgs.mlmmj}/bin/mlmmj-receive -F -L /var/spool/lists/''${user} | 504 | mlmmj unix - n n - - pipe flags=ORhu user=mlmmj argv=${pkgs.mlmmj}/bin/mlmmj-receive -F -L /var/spool/lists/''${user} |
505 | mlmmj-subs unix - n n - - pipe flags=ORhu user=mlmmj argv=${pkgs.mlmmj-exposed}/bin/mlmmj-exposed /var/spool/lists/''${user} ''${extension} | 505 | mlmmj-subs unix - n n - - pipe flags=ORhu user=mlmmj argv=${pkgs.mlmmj-exposed}/bin/mlmmj-exposed /var/spool/lists/''${user} ''${extension} |
506 | policy-spf unix - n n - - spawn user=nobody argv=${pkgs.pythonPackages.pypolicyd-spf}/bin/policyd-spf ${./ymir/spf.conf} | 506 | policy-spf unix - n n - - spawn user=nobody argv=${pkgs.pythonPackages.pypolicyd-spf}/bin/policyd-spf ${./ymir/spf.conf} |
507 | logEmail unix - n n - 10 pipe flags=Rq user=postfix null_sender= argv=${pkgs.writeScript "logEmail" '' | ||
508 | #!${pkgs.stdenv.shell} | ||
509 | |||
510 | mailFile=/tmp/logEmail/$(date +"%F-%H%M%S").$$ | ||
511 | |||
512 | mkdir -p -m 700 /tmp/logEmail | ||
513 | |||
514 | cat >$mailFile | ||
515 | |||
516 | sendmail -G -i "$@" <$mailFile | ||
517 | ''} -f ''${sender} -- ''${recipient} | ||
507 | ''; | 518 | ''; |
508 | networks = ["127.0.0.0/8" "[::ffff:127.0.0.0]/104" "[::1]/128" "10.141.0.0/16"]; | 519 | networks = ["127.0.0.0/8" "[::ffff:127.0.0.0]/104" "[::1]/128" "10.141.0.0/16"]; |
509 | }; | 520 | }; |