From 1d948428c893ded64e92502a394abc59be130a91 Mon Sep 17 00:00:00 2001 From: Izorkin Date: Sat, 13 Feb 2021 17:49:13 +0300 Subject: [PATCH] nixos/mastodon: fix send e-mail notifications --- nixos/modules/services/web-apps/mastodon.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/web-apps/mastodon.nix b/nixos/modules/services/web-apps/mastodon.nix index d3790d8b1760..2458cb3b5942 100644 --- a/nixos/modules/services/web-apps/mastodon.nix +++ b/nixos/modules/services/web-apps/mastodon.nix @@ -344,7 +344,7 @@ in { authenticate = lib.mkOption { description = "Authenticate with the SMTP server using username and password."; type = lib.types.bool; - default = true; + default = false; }; host = lib.mkOption { @@ -596,6 +596,7 @@ in { services.postfix = lib.mkIf (cfg.smtp.createLocally && cfg.smtp.host == "127.0.0.1") { enable = true; + hostname = lib.mkDefault "${cfg.localDomain}"; }; services.redis = lib.mkIf (cfg.redis.createLocally && cfg.redis.host == "127.0.0.1") { enable = true;