- Specify default UID/GID
- Allow delivery to users as low as 500
# 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
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