summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-04-05 15:45:06 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-04-05 15:45:06 +0200
commitf53939153f5365584fb412e86d45eea8410fbea5 (patch)
tree3f689f22b9b889e5f5c71c3683a69556bb5db036
parentc0789c0c538e1c4e7a7af39d7d0618ee6291ec34 (diff)
downloadnixos-f53939153f5365584fb412e86d45eea8410fbea5.tar
nixos-f53939153f5365584fb412e86d45eea8410fbea5.tar.gz
nixos-f53939153f5365584fb412e86d45eea8410fbea5.tar.bz2
nixos-f53939153f5365584fb412e86d45eea8410fbea5.tar.xz
nixos-f53939153f5365584fb412e86d45eea8410fbea5.zip
better destinations
-rw-r--r--odin.nix10
-rw-r--r--ymir.nix3
2 files changed, 3 insertions, 10 deletions
diff --git a/odin.nix b/odin.nix
index 1c0b1ecf..82af945f 100644
--- a/odin.nix
+++ b/odin.nix
@@ -107,17 +107,9 @@
107 rootAlias = "gkleen"; 107 rootAlias = "gkleen";
108 108
109 destination = [''regexp:${pkgs.writeText "destination" '' 109 destination = [''regexp:${pkgs.writeText "destination" ''
110 /\.?yggdrasil\.li$/ ACCEPT
111 /\.?praseodym\.org$/ ACCEPT
112 /\.?141\.li$/ ACCEPT
113 /\.?xmpp\.li$/ ACCEPT
114 /\.?kleen\.li$/ ACCEPT
115 /\.?dirty-haskell\.org$/ ACCEPT
116 /\.?nights\.email$/ ACCEPT
117 /\.?yggdrasil$/ ACCEPT
118 /\.?localdomain$/ ACCEPT 110 /\.?localdomain$/ ACCEPT
119 /^localhost$/ ACCEPT 111 /^localhost$/ ACCEPT
120 /\.?odin$/ ACCEPT 112 /\.?odin(\.asgard\.yggdrasil)?$/ ACCEPT
121 ''}'']; 113 ''}''];
122 config = { 114 config = {
123 default_transport = "uucp:ymir"; 115 default_transport = "uucp:ymir";
diff --git a/ymir.nix b/ymir.nix
index a0a58041..3b244d89 100644
--- a/ymir.nix
+++ b/ymir.nix
@@ -520,7 +520,8 @@ in rec {
520 transport_maps = ''regexp:${pkgs.writeText "transport" '' 520 transport_maps = ''regexp:${pkgs.writeText "transport" ''
521 /@(lists?|l)\./ mlmmj: 521 /@(lists?|l)\./ mlmmj:
522 /@subs?\.(lists?|l)\./ mlmmj-subs: 522 /@subs?\.(lists?|l)\./ mlmmj-subs:
523 ''} regexp:/srv/mail/transport pipemap:{texthash:/srv/mail/discard,static:{discard:}}''; 523 /@odin(\.asgard\.yggdrasil)?^/ uucp:odin
524 ''} pipemap:{texthash:/srv/mail/discard,static:{discard:}}'';
524 525
525 local_recipient_maps = ""; 526 local_recipient_maps = "";
526 527