From: Alex Dehnert Date: Tue, 18 Jul 2023 04:25:15 +0000 (+0000) Subject: Re-add some configs we need with dovecot-vmail X-Git-Url: https://dehnerts.com/gitweb/?a=commitdiff_plain;h=d9fbf4e7960b775e6380d5db8a95e05af0f10134;p=sysconfig%2Fdovecot.git Re-add some configs we need with dovecot-vmail - Specify default UID/GID - Allow delivery to users as low as 500 --- diff --git a/conf.d/10-mail.conf b/conf.d/10-mail.conf index db4d1d7..5427d4a 100644 --- a/conf.d/10-mail.conf +++ b/conf.d/10-mail.conf @@ -183,7 +183,7 @@ mail_attribute_dict = file:%h/maildir/dovecot-attributes # to make sure that users can't log in as daemons or other system users. # Note that denying root logins is hardcoded to dovecot binary and can't # be done even if first_valid_uid is set to 0. -first_valid_uid = 1000 +first_valid_uid = 500 last_valid_uid = 2000 # Valid GID range for users, defaults to non-root/wheel. Users having diff --git a/conf.d/auth-passwdfile.conf.ext b/conf.d/auth-passwdfile.conf.ext index 42f0e5e..32a7ee7 100644 --- a/conf.d/auth-passwdfile.conf.ext +++ b/conf.d/auth-passwdfile.conf.ext @@ -11,6 +11,7 @@ passdb { userdb { driver = passwd-file args = username_format=%u /etc/dovecot/extra-users.passwd + default_fields = uid=dovecot-vmail gid=dovecot-vmail home=/var/mail/virtual/data/%u # Default fields that can be overridden by passwd-file #default_fields = quota_rule=*:storage=1G