Gave up on manually creating config. Creating temporary docker container and then stealing config.

This commit is contained in:
Jurn Wubben 2025-06-11 21:23:55 +02:00
parent 146ca3b9ad
commit d758248ea0
2 changed files with 15 additions and 10 deletions

Binary file not shown.

View file

@ -6,12 +6,10 @@
user_admin_password = config.age.secrets.mail-admin.path; user_admin_password = config.age.secrets.mail-admin.path;
}; };
settings = { settings = {
authentication = { authentication.fallback-admin = {
fallback-admin = {
secret = "%{file:/run/credentials/stalwart-mail.service/user_admin_password}%"; secret = "%{file:/run/credentials/stalwart-mail.service/user_admin_password}%";
user = "admin"; user = "admin";
}; };
};
server = { server = {
tracer."log" = { tracer."log" = {
ansi = false; ansi = false;
@ -45,16 +43,12 @@
}; };
hostname = "mx1.jsw.tf"; hostname = "mx1.jsw.tf";
lookup.default = { lookup.default.domain = "jsw.tf";
hostname = "mx1.jsw.tf";
domain = "jsw.tf";
};
acme."letsencrypt" = { acme."letsencrypt" = {
directory = "https://acme-v02.api.letsencrypt.org/directory"; directory = "https://acme-v02.api.letsencrypt.org/directory";
challenge = "tls-alpn-01"; challenge = "tls-alpn-01";
contact = ["jurnwubben@gmail.com"]; contact = ["jurnwubben@gmail.com"];
domains = ["jsw.tf" "mx1.jsw.tf"]; domains = ["jsw.tf" "mx1.jsw.tf"];
cache = "%{BASE_PATH}%/etc/acme";
renew-before = "30d"; renew-before = "30d";
}; };
directory."imap".lookup.domains = ["jsw.tf"]; directory."imap".lookup.domains = ["jsw.tf"];
@ -71,6 +65,17 @@
# }; # };
}; };
}; };
# virtualisation.oci-containers.containers.stalwart = {
# image = "docker.io/stalwartlabs/mail-server:latest";
# labels = {
# "io.containers.autoupdate" = "registry";
# };
# ports = ["25:25" "465:465" "993:993" "9003:8080"];
# volumes = [
# "/home/jsw/stalwart:/opt/stalwart-mail"
# ];
# };
networking.firewall.allowedTCPPorts = [ networking.firewall.allowedTCPPorts = [
993 993
25 25