From fa86af83d2967aae493394f4d54da4f8182d68b8 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 5 Apr 2018 15:14:04 +0200 Subject: Accept mail on odin --- odin.nix | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'odin.nix') diff --git a/odin.nix b/odin.nix index 44052d46..1f2a6658 100644 --- a/odin.nix +++ b/odin.nix @@ -103,7 +103,22 @@ networksStyle = "host"; hostname = "odin.asgard.yggdrasil"; recipientDelimiter = "+"; - postmasterAlias = ""; rootAlias = ""; extraAliases = ""; + postmasterAlias = "gkleen"; + rootAlias = "gkleen"; + + destination = [''regexp:${pkgs.writeText "destination" '' + /\.?yggdrasil\.li$/ ACCEPT + /\.?praseodym\.org$/ ACCEPT + /\.?141\.li$/ ACCEPT + /\.?xmpp\.li$/ ACCEPT + /\.?kleen\.li$/ ACCEPT + /\.?dirty-haskell\.org$/ ACCEPT + /\.?nights\.email$/ ACCEPT + /\.?yggdrasil$/ ACCEPT + /\.?localdomain$/ ACCEPT + /^localhost$/ ACCEPT + /\.?odin$/ ACCEPT + ''}'']; config = { default_transport = "uucp:ymir"; @@ -111,6 +126,8 @@ message_size_limit = "0"; mail_spool_directory = "/srv/mail"; + + luser_relay = "postmaster${recipient_delimiter}${local:unknown}"; }; masterConfig = { @@ -123,6 +140,8 @@ args = [ "flags=Fqhu" "user=uucp" ''argv=${config.security.wrapperDir}/uux -z -a $sender - $nexthop!rmail ($recipient)'' ]; }; }; + + networks = ["127.0.0.0/8" "[::ffff:127.0.0.0]/104" "[::1]/128" "10.141.0.0/16"]; }; system.autoUpgrade.enable = true; -- cgit v1.2.3