mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-08 16:13:50 +02:00
dovecot: use underscored users _dovecot and _dovenull.
These users should not own any files, so renaming is unproblematic. Restarting dovecot fixes permissions in /var/run.
This commit is contained in:
parent
28791f4dd2
commit
b49fd85130
2 changed files with 17 additions and 2 deletions
15
srcpkgs/dovecot/patches/system-account.patch
Normal file
15
srcpkgs/dovecot/patches/system-account.patch
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
--- src/master/master-settings.c.orig
|
||||||
|
+++ src/master/master-settings.c
|
||||||
|
@@ -209,9 +209,9 @@
|
||||||
|
.protocols = "imap pop3 lmtp",
|
||||||
|
.listen = "*, ::",
|
||||||
|
.ssl = "yes:no:required",
|
||||||
|
- .default_internal_user = "dovecot",
|
||||||
|
- .default_internal_group = "dovecot",
|
||||||
|
- .default_login_user = "dovenull",
|
||||||
|
+ .default_internal_user = "_dovecot",
|
||||||
|
+ .default_internal_group = "_dovecot",
|
||||||
|
+ .default_login_user = "_dovenull",
|
||||||
|
.default_process_limit = 100,
|
||||||
|
.default_client_limit = 1000,
|
||||||
|
.default_idle_kill = 60,
|
|
@ -2,7 +2,7 @@
|
||||||
# revbump dovecot-plugin-pigeonhole when updating dovecot!
|
# revbump dovecot-plugin-pigeonhole when updating dovecot!
|
||||||
pkgname=dovecot
|
pkgname=dovecot
|
||||||
version=2.3.2.1
|
version=2.3.2.1
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-moduledir=/usr/lib/dovecot/modules --with-sql=plugin
|
configure_args="--with-moduledir=/usr/lib/dovecot/modules --with-sql=plugin
|
||||||
--disable-static --with-pam --with-mysql --with-pgsql --with-lucene
|
--disable-static --with-pam --with-mysql --with-pgsql --with-lucene
|
||||||
|
@ -42,7 +42,7 @@ fi
|
||||||
|
|
||||||
# For SSL support.
|
# For SSL support.
|
||||||
depends="ca-certificates"
|
depends="ca-certificates"
|
||||||
system_accounts="dovecot dovenull"
|
system_accounts="_dovecot _dovenull"
|
||||||
dovecot_homedir="/var/chroot"
|
dovecot_homedir="/var/chroot"
|
||||||
dovenull_homedir="/var/chroot"
|
dovenull_homedir="/var/chroot"
|
||||||
conf_files="/etc/dovecot/*.conf /etc/dovecot/conf.d/*.conf /etc/ssl/dovecot-openssl.cnf"
|
conf_files="/etc/dovecot/*.conf /etc/dovecot/conf.d/*.conf /etc/ssl/dovecot-openssl.cnf"
|
||||||
|
|
Loading…
Add table
Reference in a new issue