This commit is contained in:
Jurn Wubben 2025-06-11 20:28:56 +02:00
parent 0bb374be15
commit 8dd3576744
4 changed files with 109 additions and 77 deletions

View file

@ -2,7 +2,16 @@
services.stalwart-mail = {
enable = true;
openFirewall = false; # Don't want to open port 8080, will leave that for caddy.
credentials = {
user_admin_password = config.age.secrets.mail-admin.path;
};
settings = {
authentication = {
fallback-admin = {
secret = "%{file:/run/credentials/stalwart-mail.service/user_admin_password}%";
user = "admin";
};
};
server = {
tracer."log" = {
ansi = false;
@ -13,12 +22,6 @@
rotate = "daily";
type = "log";
};
authentication = {
fallback-admin = {
secret = "%{file:${config.age.secrets.mail-admin.path}}%";
user = "admin";
};
};
listener = {
http = {
bind = "127.0.0.1:9003";
@ -33,11 +36,6 @@
bind = "[::]:25";
protocol = "smtp";
};
jmap = {
bind = "[::]:9003";
url = "https://mail.jsw.tf";
protocol = "jmap";
};
submissions = {
bind = "[::]:465";
protocol = "smtp";