Apparently lmtp needs root to start...

This commit is contained in:
niten 2023-10-11 20:08:41 -07:00
parent 5a1eb8c5e0
commit 2233e683cb
1 changed files with 8 additions and 3 deletions

View File

@ -409,10 +409,15 @@ in {
port = ${toString cfg.ports.lmtp} port = ${toString cfg.ports.lmtp}
} }
# Drop privs, since all mail is owned by one user ## Drop privs, since all mail is owned by one user
user = ${cfg.mail-user} # user = ${cfg.mail-user}
# group = ${cfg.mail-group} # group = ${cfg.mail-group}
# user = root ### Necessary bceause:
## - for security reasons lmtp service must be started as root since
## version 2.2.36. lmtp will drop root privileges after initialisation but it needs
## to open /self/proc/io as root before that."
## See: https://dovecot.org/list/dovecot/2019-July/116674.html
user = root
} }
passdb { passdb {