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 = [ source_directories = [
"/var/lib" "/var/lib"
"/var/log" "/var/log"
"/var/mail"
"/var/sieve"
"/root" "/root"
]; ];

View file

@ -13,7 +13,7 @@ in
enableImap = true; enableImap = true;
enableQuota = false; enableQuota = false;
enableLmtp = true; enableLmtp = true;
mailLocation = "maildir:~/Maildir"; mailLocation = "maildir:/var/mail/%n";
sslServerCert = "/var/lib/acme/${hostname}/fullchain.pem"; sslServerCert = "/var/lib/acme/${hostname}/fullchain.pem";
sslServerKey = "/var/lib/acme/${hostname}/key.pem"; sslServerKey = "/var/lib/acme/${hostname}/key.pem";
protocols = [ "imap" "sieve" ]; protocols = [ "imap" "sieve" ];
@ -114,6 +114,9 @@ in
} }
client_limit = 1 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"; sslCert = "/var/lib/acme/${hostname}/fullchain.pem";
sslKey = "/var/lib/acme/${hostname}/key.pem"; sslKey = "/var/lib/acme/${hostname}/key.pem";
config = { config = {
home_mailbox = "Maildir/"; # home_mailbox = "Maildir/";
smtp_helo_name = config.networking.fqdn; smtp_helo_name = config.networking.fqdn;
smtpd_banner = "${config.networking.fqdn} ESMTP $mail_name"; smtpd_banner = "${config.networking.fqdn} ESMTP $mail_name";
smtp_use_tls = true; smtp_use_tls = true;