diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-05 15:05:09 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-05 15:05:09 +0200 |
commit | 8e70806d9055bb4eca719455b811792cb0006ee2 (patch) | |
tree | 844c6d5928b74e8bbbab1b6c186b2eb71450138a | |
parent | 63639f92cde753e172a4fac2815541f13ada9bdd (diff) | |
download | nixos-8e70806d9055bb4eca719455b811792cb0006ee2.tar nixos-8e70806d9055bb4eca719455b811792cb0006ee2.tar.gz nixos-8e70806d9055bb4eca719455b811792cb0006ee2.tar.bz2 nixos-8e70806d9055bb4eca719455b811792cb0006ee2.tar.xz nixos-8e70806d9055bb4eca719455b811792cb0006ee2.zip |
postfix on odin
-rw-r--r-- | odin.nix | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -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 | ||