The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'E-mail Discussions' started by murara, Jun 13, 2008.

  1. murara

    murara Registered

    Joined:
    Jun 7, 2008
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  2. frkandris

    frkandris Member

    Joined:
    Mar 7, 2008
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    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
    --
     
  3. murara

    murara Registered

    Joined:
    Jun 7, 2008
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    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!
     
Loading...

Share This Page