summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odin.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/odin.nix b/odin.nix
index ec7b8ef3..fbec5978 100644
--- a/odin.nix
+++ b/odin.nix
@@ -95,6 +95,36 @@
95 defaultCommands = ["rmail"]; 95 defaultCommands = ["rmail"];
96 }; 96 };
97 97
98 services.postfix = {
99 enable = true;
100 enableSmtp = false;
101 enableSubmission = false;
102 setSendmail = true;
103 networksStyle = "host";
104 hostname = "odin.asgard.yggdrasil";
105 recipientDelimiter = "+";
106 postmasterAlias = ""; rootAlias = ""; extraAliases = "";
107
108 config = {
109 default_transport = "uucp:ymir";
110
111 message_size_limit = 0;
112
113 mail_spool_directory = "/srv/mail";
114 };
115
116 masterConfig = {
117 uucp = {
118 type = "unix";
119 private = true;
120 privileged = true;
121 chroot = false;
122 command = "pipe";
123 args = [ "flags=Fqhu" "user=uucp" ''argv=${config.security.wrapperDir}/uux -z -a $sender - $nexthop!rmail ($recipient)'' ];
124 };
125 };
126 };
127
98 system.autoUpgrade.enable = true; 128 system.autoUpgrade.enable = true;
99 system.stateVersion = "18.09"; 129 system.stateVersion = "18.09";
100 130