diff options
| -rw-r--r-- | odin.nix | 21 |
1 files changed, 20 insertions, 1 deletions
| @@ -103,7 +103,22 @@ | |||
| 103 | networksStyle = "host"; | 103 | networksStyle = "host"; |
| 104 | hostname = "odin.asgard.yggdrasil"; | 104 | hostname = "odin.asgard.yggdrasil"; |
| 105 | recipientDelimiter = "+"; | 105 | recipientDelimiter = "+"; |
| 106 | postmasterAlias = ""; rootAlias = ""; extraAliases = ""; | 106 | postmasterAlias = "gkleen"; |
| 107 | rootAlias = "gkleen"; | ||
| 108 | |||
| 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 | ||
| 119 | /^localhost$/ ACCEPT | ||
| 120 | /\.?odin$/ ACCEPT | ||
| 121 | ''}'']; | ||
| 107 | 122 | ||
| 108 | config = { | 123 | config = { |
| 109 | default_transport = "uucp:ymir"; | 124 | default_transport = "uucp:ymir"; |
| @@ -111,6 +126,8 @@ | |||
| 111 | message_size_limit = "0"; | 126 | message_size_limit = "0"; |
| 112 | 127 | ||
| 113 | mail_spool_directory = "/srv/mail"; | 128 | mail_spool_directory = "/srv/mail"; |
| 129 | |||
| 130 | luser_relay = "postmaster${recipient_delimiter}${local:unknown}"; | ||
| 114 | }; | 131 | }; |
| 115 | 132 | ||
| 116 | masterConfig = { | 133 | masterConfig = { |
| @@ -123,6 +140,8 @@ | |||
| 123 | args = [ "flags=Fqhu" "user=uucp" ''argv=${config.security.wrapperDir}/uux -z -a $sender - $nexthop!rmail ($recipient)'' ]; | 140 | args = [ "flags=Fqhu" "user=uucp" ''argv=${config.security.wrapperDir}/uux -z -a $sender - $nexthop!rmail ($recipient)'' ]; |
| 124 | }; | 141 | }; |
| 125 | }; | 142 | }; |
| 143 | |||
| 144 | networks = ["127.0.0.0/8" "[::ffff:127.0.0.0]/104" "[::1]/128" "10.141.0.0/16"]; | ||
| 126 | }; | 145 | }; |
| 127 | 146 | ||
| 128 | system.autoUpgrade.enable = true; | 147 | system.autoUpgrade.enable = true; |
