From 8e70806d9055bb4eca719455b811792cb0006ee2 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 5 Apr 2018 15:05:09 +0200 Subject: postfix on odin --- odin.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/odin.nix b/odin.nix index ec7b8ef3..fbec5978 100644 --- a/odin.nix +++ b/odin.nix @@ -95,6 +95,36 @@ defaultCommands = ["rmail"]; }; + services.postfix = { + enable = true; + enableSmtp = false; + enableSubmission = false; + setSendmail = true; + networksStyle = "host"; + hostname = "odin.asgard.yggdrasil"; + recipientDelimiter = "+"; + postmasterAlias = ""; rootAlias = ""; extraAliases = ""; + + config = { + default_transport = "uucp:ymir"; + + message_size_limit = 0; + + mail_spool_directory = "/srv/mail"; + }; + + masterConfig = { + uucp = { + type = "unix"; + private = true; + privileged = true; + chroot = false; + command = "pipe"; + args = [ "flags=Fqhu" "user=uucp" ''argv=${config.security.wrapperDir}/uux -z -a $sender - $nexthop!rmail ($recipient)'' ]; + }; + }; + }; + system.autoUpgrade.enable = true; system.stateVersion = "18.09"; -- cgit v1.2.3