diff options
author | sefidel <contact@sefidel.net> | 2023-12-05 17:26:53 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2023-12-05 17:37:14 +0900 |
commit | ac4871ea5201703018c08f1e68f4b02f08ba39df (patch) | |
tree | 680305da16ef5ba83f9dfb481372fec29d6e92eb /modules | |
parent | d1f9573558f0de8f2daa8cc2d6e9f78e118abab1 (diff) | |
download | infra-ac4871ea5201703018c08f1e68f4b02f08ba39df.tar.gz infra-ac4871ea5201703018c08f1e68f4b02f08ba39df.zip |
fix(modules/nixos-mailserver): fix webmail smtp (outgoing)
Diffstat (limited to 'modules')
-rw-r--r-- | modules/services/nixos-mailserver.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/services/nixos-mailserver.nix b/modules/services/nixos-mailserver.nix index 715558d..a794430 100644 --- a/modules/services/nixos-mailserver.nix +++ b/modules/services/nixos-mailserver.nix @@ -131,6 +131,11 @@ in "vcard_attachments" "zipdownload" ]; + + extraConfig = '' + # STARTTLS required for authn, therefore the domain must match the SSL cert. + $config['smtp_server'] = 'tls://${config.mailserver.fqdn}'; + ''; }; services.nginx.virtualHosts.${cfg.webmail.realHost} = { |