Re-add some configs we need with dovecot-vmail
authorAlex Dehnert <alex@dehnerts.com>
Tue, 18 Jul 2023 04:25:15 +0000 (04:25 +0000)
committerAlex Dehnert <alex@dehnerts.com>
Tue, 18 Jul 2023 04:28:35 +0000 (04:28 +0000)
- Specify default UID/GID
- Allow delivery to users as low as 500

conf.d/10-mail.conf
conf.d/auth-passwdfile.conf.ext

index db4d1d7df21551a9c1042dbf07e0a459aca4eeb1..5427d4a7fb9753748d179772b1303292940c312a 100644 (file)
@@ -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
index 42f0e5e59c34b4ef4766b75838d94fcfc4140fc0..32a7ee725878ba146b0ee008c0495045ddd44956 100644 (file)
@@ -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