Which password encoding?

Discussion in 'Installation/Configuration' started by Turgut Kalfaoglu, Dec 24, 2024.

  1. Turgut Kalfaoglu

    Turgut Kalfaoglu Member HowtoForge Supporter

    Hi. Looking at the database I see (scrambled by me a bit)
    [dbispconfig]> SELECT email, password FROM mail_user WHERE email = '[email protected]';
    +-------------------------+---------------------------------------------------------------------------------
    ---------------------------------------+
    | email | password
    |
    +-------------------------+---------------------------------------------------------------------------------
    ---------------------------------------+
    | [email protected] | $6$rounds=5000$0ac5eee34540ee68$GEUPOkAJAUW7AvTOaXxGP.mHAyFX/EsKjEKm.wm9YjpTV.IRu5Bs7U1. |
    +-------------------------+-----------------------​

    So it looks like SHA512-CRYPT. But the dovecot-sql.conf file mentions:
    default_pass_scheme = CRYPT​

    Which one is correct?
    Regards, -t
     
  2. remkoh

    remkoh Active Member HowtoForge Supporter

    As the password starts with $6$ it is SHA512-CRYPT.

    Besides that default_pass_scheme shouldn't be all that relevant as Dovecot shouldn't store passwords.
    That task is for ISPC to do.
    Should you use doveadm to set a password then your ISPC database holding all account info and Dovecot will be out of sync.
     
    Last edited: Dec 24, 2024
    Turgut Kalfaoglu likes this.
  3. Turgut Kalfaoglu

    Turgut Kalfaoglu Member HowtoForge Supporter

    Many thanks. updating dovecot config just in case
     

Share This Page