diff --git a/hosts/vps1/services/mailserver.nix b/hosts/vps1/services/mailserver.nix index 99709ad..dbe3207 100644 --- a/hosts/vps1/services/mailserver.nix +++ b/hosts/vps1/services/mailserver.nix @@ -13,7 +13,17 @@ in domain gitDomain ]; - certificateScheme = "acme"; + + # certificateScheme = "acme"; + # Cannot be used since it uses fqdn + certificateScheme = "manual"; + certificateFile = "${config.security.acme.certs.${rootDomain}.directory}/fullchain.pem"; + keyFile = "${config.security.acme.certs.${rootDomain}.directory}/key.pem"; + security.acme.certs."${rootDomain}".reloadServices = [ + "postfix.service" + "dovecot2.service" + ]; + enableManageSieve = true; indexDir = "/var/lib/dovecot/indices"; @@ -26,11 +36,13 @@ in "postmaster@${rootDomain}" "abuse@${rootDomain}" ]; + hashedPassword = "$2b$05$E18a4pSMfEmd.mfVGQEJe.JBTS3jxdf6yLDZdOQNIs9NrNMc5K.cK"; }; "forgejo@${rootDomain}" = { aliases = [ "@${gitDomain}" ]; + hashedPassword = "$2b$05$IlDxRGJ6vOUjDIq0hfCd3uIVLQw0oodRU1cG8pKueO1BgaIfpUYPS"; }; }; };