How to migrate from postfix (MD5 password) to exim?

murara

Registered
Jun 7, 2008
4
0
51
Hello,

I have two servers. The first one doesnt have Cpanel, and the second has. I need to migrate the first server mail accounts to the second.
Configuration server #1:
- POSTFIX(Maildir) + PostgreSQL: Virtual Agent
The passwords has been encrypted by MD5.

Conficuration server #2:
- Exim
The passwords has been encrypted by default hash.


To migrate maildir folders and files are simple. But how to migrate account's password?
I treid to create an account (by cpanel) and overwrite hash in the shadow file with MD5 hash, but failed.
shadow file: ~user/etc/<domain>/shadow

Ideas?


Tks
 

frkandris

Member
Mar 7, 2008
20
0
51
Hello,

I have two servers. The first one doesnt have Cpanel, and the second has. I need to migrate the first server mail accounts to the second.
Configuration server #1:
- POSTFIX(Maildir) + PostgreSQL: Virtual Agent
The passwords has been encrypted by MD5.

Conficuration server #2:
- Exim
The passwords has been encrypted by default hash.


To migrate maildir folders and files are simple. But how to migrate account's password?
I treid to create an account (by cpanel) and overwrite hash in the shadow file with MD5 hash, but failed.
shadow file: ~user/etc/<domain>/shadow

Ideas?


Tks
i guess there is no real method for this, md5 --> hash can not be done. you may try to sniff passwords in the old system for a while, telling your users that you'll move them to another system so they must log in next week to be moved.

frkandris
--
 

murara

Registered
Jun 7, 2008
4
0
51
Exim X Courier

I modified the function checkuserpass() and checkpass() in /etc/exim.pl I wrote a rotine to test the native hash and MD5 hash (Digest::MD5). It works.
But I´didnt find any solution for Courier (POP3)....
So, I changed every account password and I told their owns....

Tks!