Skip to content

Commit c168a16

Browse files
committed
use starttls port
1 parent 1e706b2 commit c168a16

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

modules/nixos/gateway.nix

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ in
152152
};
153153

154154
notifier.smtp = {
155-
address = "submissions://smtp.fastmail.com:465";
155+
address = "submission://smtp.fastmail.com:587";
156156
sender = "Authelia <noreply+auth@kclj.io>";
157157
subject = "[Authelia] {title}";
158158
disable_require_tls = false;
@@ -217,9 +217,13 @@ in
217217
AUTHELIA_NOTIFIER_SMTP_STARTUP_CHECK_ADDRESS=${config.sops.placeholder."authelia/smtp_username"}
218218
'';
219219
};
220-
systemd.services."authelia-${autheliaInstance}".serviceConfig.EnvironmentFile = [
221-
config.sops.templates."authelia-smtp.env".path
222-
];
220+
systemd.services."authelia-${autheliaInstance}" = {
221+
after = [ "redis-authelia.service" ];
222+
requires = [ "redis-authelia.service" ];
223+
serviceConfig.EnvironmentFile = [
224+
config.sops.templates."authelia-smtp.env".path
225+
];
226+
};
223227

224228
# ACME / Let's Encrypt via Cloudflare DNS-01 challenge
225229
security.acme = {

0 commit comments

Comments
 (0)