Maximum password length [limit for password_min_length]

Hey there!

I was wondering, if there is an upper limit for the minimum password length setting in chatmail.ini. I tried a value that was exceeding 2000 (yes, I know this is not practical) and account creation did not work anymore. Is there an upper bound that is still “safe to use”?

I didn’t check but I would guess that this limit is in the Dovecot code base if there is one.

This is the place where password_min_length is checked:

This is where it’s used to generate a password:

There is no “password length” check there.