diff options
Diffstat (limited to 'ymir.nix')
-rw-r--r-- | ymir.nix | 38 |
1 files changed, 24 insertions, 14 deletions
@@ -567,25 +567,35 @@ in rec { | |||
567 | recipient_canonical_maps = tcp:localhost:10002 | 567 | recipient_canonical_maps = tcp:localhost:10002 |
568 | recipient_canonical_classes= envelope_recipient,header_recipient | 568 | recipient_canonical_classes= envelope_recipient,header_recipient |
569 | ''; | 569 | ''; |
570 | extraMasterConf = '' | 570 | masterConf = { |
571 | uucp unix - n n - - pipe flags=Fqhu user=uucp argv=${config.security.wrapperDir}/uux -z -a $sender - $nexthop!rmail ($recipient) | 571 | uucp = { |
572 | mlmmj unix - n n - - pipe flags=ORhu user=mlmmj argv=${pkgs.mlmmj}/bin/mlmmj-receive -F -L /var/spool/lists/''${user} | 572 | type = "unix"; |
573 | mlmmj-subs unix - n n - - pipe flags=ORhu user=mlmmj argv=${pkgs.mlmmj-exposed}/bin/mlmmj-exposed /var/spool/lists/''${user} ''${extension} | 573 | private = true; |
574 | policy-spf unix - n n - - spawn user=nobody argv=${pkgs.pythonPackages.pypolicyd-spf}/bin/policyd-spf ${./ymir/spf.conf} | 574 | privileged = false; |
575 | logEmail unix - n n - 10 pipe flags=Rq user=nobody null_sender= argv=${pkgs.writeScript "logEmail" '' | 575 | chroot = false; |
576 | #!${pkgs.stdenv.shell} | 576 | command = "pipe"; |
577 | args = [ "flags=Fqhu" "user=uucp" ''argv=${config.security.wrapperDir}/uux -z -a $sender - $nexthop!rmail ($recipient)'' ]; | ||
578 | }; | ||
579 | }; | ||
580 | # extraMasterConf = '' | ||
581 | # uucp unix - n n - - pipe flags=Fqhu user=uucp argv=${config.security.wrapperDir}/uux -z -a $sender - $nexthop!rmail ($recipient) | ||
582 | # mlmmj unix - n n - - pipe flags=ORhu user=mlmmj argv=${pkgs.mlmmj}/bin/mlmmj-receive -F -L /var/spool/lists/''${user} | ||
583 | # mlmmj-subs unix - n n - - pipe flags=ORhu user=mlmmj argv=${pkgs.mlmmj-exposed}/bin/mlmmj-exposed /var/spool/lists/''${user} ''${extension} | ||
584 | # policy-spf unix - n n - - spawn user=nobody argv=${pkgs.pythonPackages.pypolicyd-spf}/bin/policyd-spf ${./ymir/spf.conf} | ||
585 | # logEmail unix - n n - 10 pipe flags=Rq user=nobody null_sender= argv=${pkgs.writeScript "logEmail" '' | ||
586 | # #!${pkgs.stdenv.shell} | ||
577 | 587 | ||
578 | export PATH=${config.security.wrapperDir}:/run/current-system/sw/bin | 588 | # export PATH=${config.security.wrapperDir}:/run/current-system/sw/bin |
579 | 589 | ||
580 | mailFile=/tmp/logEmail/$(date +"%F-%H%M%S").$$ | 590 | # mailFile=/tmp/logEmail/$(date +"%F-%H%M%S").$$ |
581 | 591 | ||
582 | mkdir -p -m 700 /tmp/logEmail | 592 | # mkdir -p -m 700 /tmp/logEmail |
583 | 593 | ||
584 | cat >$mailFile | 594 | # cat >$mailFile |
585 | 595 | ||
586 | sendmail -G -i "$@" <$mailFile | 596 | # sendmail -G -i "$@" <$mailFile |
587 | ''} -f ''${sender} -- ''${recipient} | 597 | # ''} -f ''${sender} -- ''${recipient} |
588 | ''; | 598 | # ''; |
589 | networks = ["127.0.0.0/8" "[::ffff:127.0.0.0]/104" "[::1]/128" "10.141.0.0/16"]; | 599 | networks = ["127.0.0.0/8" "[::ffff:127.0.0.0]/104" "[::1]/128" "10.141.0.0/16"]; |
590 | }; | 600 | }; |
591 | 601 | ||