Page 1 of 1
Convert exim passhash ?
Posted: Mon Jul 15, 2019 9:03 am
by ozgurerdogan
I need to convert password schemes in passwd file from MD5-CRYPT to SHA512-CRYPT. Is there a way from vestapanel side? Or can I simply follow
https://wiki2.dovecot.org/HowTo/ConvertPasswordSchemes
Re: Convert exim passhash ?
Posted: Mon Jul 15, 2019 10:54 am
by grayfolk
VestaCP just control some configs. You should follow official Exim instructions.
Re: Convert exim passhash ?
Posted: Mon Jul 29, 2019 7:50 pm
by dreiggy
As I see vesta is generating password with md5 crypt. So it is hardcoded ;)
File: /usr/local/vesta/bin/v-add-mail-account
Code: Select all
# Generating hashed password
salt=$(generate_password "$PW_MATRIX" "8")
md5="{MD5}$($BIN/v-generate-password-hash md5 $salt <<<$password)"
I beleve, that you may change this part in files:
v-add-mail-account
v-change-mail-account-password
But I don't recommend to this, because updates can break this changes ;)