ozgurerdogan
Verified User
- Joined
- Apr 20, 2008
- Messages
- 343
I need to migrate mail accounts between exim servers but I do not know user passwords. And do not want to change or disturb users.
Old server (vestapanel) uses passwd file in format (MD5-CRYPT):
{MD5}$1$s3jmZ3Rg$ja/jVRKSojRyNJmahoarI0
And new server (directadmin) uses passwd file in format (SHA512-CRYPT):
$6$MnPsMdkM$N1WcJJPMIvpkFK905rCO9IWnPcqf6NlFFEKlwsajByfpN9EI3Obg2OfRD839Wl5k7JCzb9rCX.5BKTFeiVtcI0
So I think (please advise if any easy and better way), if I can manage to update old server passwd file to SHA512-CRYPT then I can copy and paste password hashes to new server after I created with a random password. I tested copy and paste hash in passwd file is fine.
But how can I update pass hash to SHA512-CRYPT ? On dovecot page https://wiki2.dovecot.org/HowTo/ConvertPasswordSchemes it shows and example for mysql context but I need to update passwd file.
Can you please guide me?
Old server (vestapanel) uses passwd file in format (MD5-CRYPT):
{MD5}$1$s3jmZ3Rg$ja/jVRKSojRyNJmahoarI0
And new server (directadmin) uses passwd file in format (SHA512-CRYPT):
$6$MnPsMdkM$N1WcJJPMIvpkFK905rCO9IWnPcqf6NlFFEKlwsajByfpN9EI3Obg2OfRD839Wl5k7JCzb9rCX.5BKTFeiVtcI0
So I think (please advise if any easy and better way), if I can manage to update old server passwd file to SHA512-CRYPT then I can copy and paste password hashes to new server after I created with a random password. I tested copy and paste hash in passwd file is fine.
But how can I update pass hash to SHA512-CRYPT ? On dovecot page https://wiki2.dovecot.org/HowTo/ConvertPasswordSchemes it shows and example for mysql context but I need to update passwd file.
Can you please guide me?