Hello everyone:

I'm trying to migrate my old postfix users' passwords hashed in MD5 to Zimbra CS 7.0. I'm able to view the postfix's passwords with this simple sql query:

mysql> select Username, Password from postfix.mailbox;
+-----------------------------+----------------------------------+
|⠀Username⠀⠀⠀⠀⠀⠀|⠀Password⠀⠀⠀⠀⠀⠀⠀⠀⠀|
+-----------------------------+----------------------------------+
|⠀mailadmin@mydomain.com⠀⠀⠀| db77e4a763ec5b10bd818a39XXXXc7bd⠀|
|⠀user1@mydomain.com⠀⠀⠀⠀⠀⠀| 6473275beXXXXd628855e20736b9aeb6⠀|
etc...
I read this:
Password Migration - Zimbra :: Wiki
And I executed a simple "modify account" on a user:
zmprov ma mailadmin@mydomain.com userPassword '{crypt}db77e4a763ec5b10bd818a39XXXXc7bd'
But it didn't work, after read some related threads i executed:
zmprov ma mailadmin@mydomain.com userPassword '{MD5}db77e4a763ec5b10bd818a39XXXXc7bd'
It failed again. So I had to go deeper into, using ldapsearch and ldapmodify:
/opt/zimbra/openldap/bin/ldapsearch -H ldap://mail.mydomain.com l -D uid=zimbra,cn=admins,cn=zimbra -x -w <my-pass> | grep -A 10 mailadmin
It gave me:
...
userPassword:: ADfdsafaSGFASQ== (a base 64 value with {SSHA})
I changed it with:
/opt/zimbra/openldap/bin/ldapmodify -x -h mail.mydomain.com -D "uid=zimbra,cn=admins,cn=zimbra" -w <mypass>
dn: uid=mailadmin,ou=people,dc=mydomain,dc=com
changetype: modify
replace: userPassword
userPassword: {MD5}db77e4a763ec5b10bd818a39XXXXc7bd

modifying entry "uid=mailadmin,ou=people,dc=mydomain,dc=com"
Now, the userPassword says:
userPassword:: e01ENX1kYjc3ZTRhNzYzZWM1YjEwYmQ4MThhMzlYWFhYYzdiZA ==
Please note that "::" means that the value is written in Base64. The above text says: {MD5}db77e4a763ec5b10bd818a39XXXXc7bd, that looks good
But the problem is not solved. I need to import all those MD5 hashes into the LDAP directory. I've read and tried some methods like putting "password-hash {MD5}" into slapd.conf and so, but it isn't working.

What can I do? Thanks in advance.

Best Regards.
codeN_

P.S: user accounts, the domain and the hashes had been modified because of privacy issues.