[Dovecot] User authentication fields size limit
Hello
I'm using authentication via SQL, and I'm storing the full mail_location in the database. This is a long string because we're using multiple partitions and hashing to create this path. It looks like this:
# doveadm user andre=sneakymustard.com userdb: andre=sneakymustard.com password : $1$ixW87UeD$fLhORaJS0c5wNFmWqfJdI1 mail : mdbox:/var/spool/imap/partition7/11/andre=sneakymustard.com:INDEX=/var/lib/imap/user/11/andre=sneakymustard.com quota_rule: *:bytes=1024M
Depending on the user's email, this string can be even longer. What I've noticed is that it is truncated when it reaches 128 bytes.
Could this size limit be increased?
Thanks, Andre
On Wed, 2010-10-06 at 15:40 -0300, Andre Nathan wrote:
mail : mdbox:/var/spool/imap/partition7/11/andre=sneakymustard.com:INDEX=/var/lib/imap/user/11/andre=sneakymustard.com quota_rule: *:bytes=1024M
Depending on the user's email, this string can be even longer. What I've noticed is that it is truncated when it reaches 128 bytes.
There's no 128 byte limit in Dovecot as far as I know. You sure it's not truncated to 128 bytes already on the SQL database? :) If that's not the case, set auth_debug=yes and show the logs.
On Wed, 2010-10-06 at 19:59 +0100, Timo Sirainen wrote:
There's no 128 byte limit in Dovecot as far as I know. You sure it's not truncated to 128 bytes already on the SQL database? :) If that's not the case, set auth_debug=yes and show the logs.
Is the log from "doveadm user" enough? It's like below.
Oct 6 16:11:03 box5 dovecot: auth: Debug: master in: USER#0111#011wellington.epaminondas=sbu.org.br#011service=doveadm
Oct 6 16:11:03 box5 dovecot: auth: Debug: prefetch(wellington.epaminondas=sbu.org.br): passdb didn't return userdb entries, trying the next userdb
Oct 6 16:11:03 box5 dovecot: auth: Debug: sql(wellington.epaminondas=sbu.org.br): SELECT pass AS password, mail_location AS mail, concat('*:bytes=', quota, 'M') AS quota_rule FROM mail_users WHERE user = 'wellington.epaminondas=sbu.org.br' AND server_id = 1
Oct 6 16:11:03 box5 dovecot: auth: Debug: master out: USER#0111#011wellington.epaminondas=sbu.org.br#011password=$1$gT9MJF7o $mactR0nGXtu8X6G.3mJuF0#011mail=mdbox:/var/spool/imap/partition7/b7/wellington.epaminondas=sbu.org.br:INDEX=/var/lib/imap/user/b7/wellington.epaminondas=sbu.org#011quota_rule=*:bytes=1024M
Truncation appears in the "master out" string.
Thanks, Andre
participants (2)
-
Andre Nathan
-
Timo Sirainen