Mailing now works
This commit is contained in:
@@ -23,6 +23,11 @@ in
|
|||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
default = "SENDER_MAIL_DOMAIN";
|
default = "SENDER_MAIL_DOMAIN";
|
||||||
};
|
};
|
||||||
|
smtpPort = lib.mkOption {
|
||||||
|
description = "The SMTP port";
|
||||||
|
type = lib.types.port;
|
||||||
|
default = 465;
|
||||||
|
};
|
||||||
smtpUsername = lib.mkOption {
|
smtpUsername = lib.mkOption {
|
||||||
description = "The SMTP username";
|
description = "The SMTP username";
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
@@ -41,9 +46,11 @@ in
|
|||||||
accounts.default = {
|
accounts.default = {
|
||||||
auth = true;
|
auth = true;
|
||||||
host = config.email.smtpServer;
|
host = config.email.smtpServer;
|
||||||
|
port = config.email.smtpPort;
|
||||||
from = config.email.fromAddress;
|
from = config.email.fromAddress;
|
||||||
user = config.email.smtpUsername;
|
user = config.email.smtpUsername;
|
||||||
tls = true;
|
tls = true;
|
||||||
|
tls_starttls = false;
|
||||||
passwordeval = "${pkgs.coreutils}/bin/cat ${config.email.smtpPasswordPath}";
|
passwordeval = "${pkgs.coreutils}/bin/cat ${config.email.smtpPasswordPath}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user