summaryrefslogtreecommitdiff
path: root/hostnix/elmo/email.nix
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2025-12-07 22:37:39 -0500
committerJoe Mou <dev@mou.fo>2025-12-24 23:56:37 -0800
commit72dc6157b6f4fc0db572a66b3b10150112019914 (patch)
tree1d10269744abc8e8e0d62185213d9ac24bfa726f /hostnix/elmo/email.nix
parent9f4ad647d0922e5740d5c77d29e5fc438f06a978 (diff)
Upgrade to NixOS 25.11
The auth_header Home Assistant custom component has been removed. For now we use the last package from: https://github.com/NixOS/nixpkgs/blob/7f88a8b9efaf0e08e63e3806b2b3f42fd83fde91/pkgs/servers/home-assistant/custom-components/auth-header/package.nix
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";
};
};