summaryrefslogtreecommitdiff
path: root/hostnix/elmo/email.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hostnix/elmo/email.nix')
-rw-r--r--hostnix/elmo/email.nix15
1 files changed, 8 insertions, 7 deletions
diff --git a/hostnix/elmo/email.nix b/hostnix/elmo/email.nix
index ee169f2..71f85c9 100644
--- a/hostnix/elmo/email.nix
+++ b/hostnix/elmo/email.nix
@@ -81,19 +81,20 @@
services.postfix = {
enable = true;
- hostname = config.networking.fqdn;
- relayHost = "smtp.mou.fo";
- relayPort = 587;
- sslCert = "/var/lib/postfix/tls/live/fullchain.pem";
- sslKey = "/var/lib/postfix/tls/live/key.pem";
extraAliases = ''
root: joe
joe: joe@mou.fo
'';
- config = {
+ settings.main = {
+ myhostname = config.networking.fqdn;
+ relayhost = [ "smtp.mou.fo:587" ];
+ smtp_tls_chain_files = [
+ "/var/lib/postfix/tls/live/key.pem"
+ "/var/lib/postfix/tls/live/fullchain.pem"
+ ];
smtp_tls_security_level = "encrypt";
smtp_tls_session_cache_database = "btree:\${data_directory}/smtp_scache";
- message_size_limit = "51200000";
+ message_size_limit = 51200000;
default_destination_rate_delay = "1s";
};
};