.I first_valid_uid
setting.
.sp
-When the sql userdb module is used make sure that the
+When the SQL userdb module is used make sure that the
.I iterate_query
-setting in the
+setting in
.I @pkgsysconfdir@/dovecot\-sql.conf.ext
matches your database layout.
+When using the LDAP userdb module, make sure that the
+.IR iterate_attrs " and " iterate_filter
+settings in
+.I @pkgsysconfdir@/dovecot-ldap.conf.ext
+match your LDAP schema.
Otherwise
.BR doveadm (1)
will be unable to iterate over all users.