falkenstein: move mail to /var

This commit is contained in:
Rouven Seifert 2024-05-20 12:25:13 +02:00
parent f1faf050b7
commit f0647c2356
3 changed files with 7 additions and 2 deletions

View file

@ -10,6 +10,8 @@
source_directories = [
"/var/lib"
"/var/log"
"/var/mail"
"/var/sieve"
"/root"
];

View file

@ -13,7 +13,7 @@ in
enableImap = true;
enableQuota = false;
enableLmtp = true;
mailLocation = "maildir:~/Maildir";
mailLocation = "maildir:/var/mail/%n";
sslServerCert = "/var/lib/acme/${hostname}/fullchain.pem";
sslServerKey = "/var/lib/acme/${hostname}/key.pem";
protocols = [ "imap" "sieve" ];
@ -114,6 +114,9 @@ in
}
client_limit = 1
}
plugin {
sieve = file:/var/sieve/%u;active=/var/sieve/%u.sieve
}
'';
};
};

View file

@ -36,7 +36,7 @@ in
sslCert = "/var/lib/acme/${hostname}/fullchain.pem";
sslKey = "/var/lib/acme/${hostname}/key.pem";
config = {
home_mailbox = "Maildir/";
# home_mailbox = "Maildir/";
smtp_helo_name = config.networking.fqdn;
smtpd_banner = "${config.networking.fqdn} ESMTP $mail_name";
smtp_use_tls = true;