fix
This commit is contained in:
16
module.nix
16
module.nix
@@ -45,7 +45,7 @@ in
|
||||
(lib.mkOption {
|
||||
default = "mastodon";
|
||||
type = lib.types.strMatching "[A-Za-z0-9][A-Za-z0-9\-]{0,61}[A-Za-z0-9]";
|
||||
description = "Subdomain";
|
||||
description = "Subdomain (changing subdomain after setting up will cause breakage of the server!)";
|
||||
})
|
||||
// {
|
||||
meta = {
|
||||
@@ -75,13 +75,14 @@ in
|
||||
|
||||
smtp = {
|
||||
createLocally = false;
|
||||
# user = "noreply.mastodon@${sp.domain}";
|
||||
fromAddress = "noreply.mastodon@${sp.domain}";
|
||||
user = "noreply.mastodon";
|
||||
# fromAddress = "noreply.mastodon@${sp.domain}";
|
||||
# user = "noreply.mastodon";
|
||||
|
||||
fromAddress = "mastodon@${sp.domain}";
|
||||
user = "mastodon";
|
||||
|
||||
host = "hollowness.top";
|
||||
# host = "127.0.0.1";
|
||||
port = 465;
|
||||
# port = 22;
|
||||
passwordFile = "/run/keys/mastodon/email_password";
|
||||
authenticate = true;
|
||||
};
|
||||
@@ -100,7 +101,8 @@ in
|
||||
# smtp_sasl_password_maps = "texthash:/run/postfix/mastodon.cf";
|
||||
# virtual_mailbox_maps = [ "hash:/run/postfix/mastodon.cf" ];
|
||||
# };
|
||||
mailserver.loginAccounts."noreply.mastodon@${sp.domain}" = {
|
||||
# mailserver.loginAccounts."noreply.mastodon@${sp.domain}" = {
|
||||
mailserver.loginAccounts."mastodon@${sp.domain}" = {
|
||||
hashedPasswordFile = "/run/postfix/mastodon.cf";
|
||||
sendOnly = true;
|
||||
};
|
||||
|
Reference in New Issue
Block a user