Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member nyjimbo's Avatar
    Join Date
    Jan 2003
    Location
    New York
    Posts
    1,105

    Default importing des/md5 hash passwords when making pops

    I posted a similiar thread a while ago but found a different way of setting things up and now have a different question.

    On some of our non-cpanel FREEBSD boxes we want to move a hundred or so pop3 accounts on one domain to a cpanel box. We created the domain/account and then using addpop in /scripts we created the hundred or so email accounts. However we had to just put in a generic password because of course we cannot extract passwords from the non-cpanel boxes des or md5 hash in master.passwd.

    We CAN extract the username and password in the hash format from the old password file on the old server but not decrypt it so what I was wondering, is there a way to get addpop to use the existing DES or md5 hash password when building the pop3 accounts?.

    Normally we do "./addpop bob@whatever.com bobspasswd"

    I would like to do "./addpop bob@whatever.com $1a.c9583/cg$30930"or use the encrypted password from the old password file.

    We have moved many older users from one freebsd box to another by just copying master.passwd, editing it as needed and doing a pwd_mkdb, but I see that cpanel creates a "passwd" and a "shadow" in the /etc folder for the domain and not a "master.passwd" so I am sure its doing something different. Has anyone done this with cpanel?. I really would like to use the existing passwords and not have to go through the nightmare of telling a hundred people their new password or waiting for complaints from people who cannot login to email anymore.

    Thanks.
    Last edited by nyjimbo; 05-14-2008 at 12:37 PM.
    "A dog has raised it’s hind leg on the age of nevermore !"
    -- Rolf

  2. #2
    Registered User
    Join Date
    Jan 2008
    Posts
    3

    Default

    I've got exactly the same issue and posted the same question a few months back with no replies

    create mail accounts using existing md5 passwords

    It would be great to know if this is possible as surely this is a common issue..

    - snap

  3. #3
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,597

    Default

    Quote Originally Posted by nyjimbo View Post
    I posted a similiar thread a while ago but found a different way of setting things up and now have a different question.

    On some of our non-cpanel FREEBSD boxes we want to move a hundred or so pop3 accounts on one domain to a cpanel box. We created the domain/account and then using addpop in /scripts we created the hundred or so email accounts. However we had to just put in a generic password because of course we cannot extract passwords from the non-cpanel boxes des or md5 hash in master.passwd.

    We CAN extract the username and password in the hash format from the old password file on the old server but not decrypt it so what I was wondering, is there a way to get addpop to use the existing DES or md5 hash password when building the pop3 accounts?.

    Normally we do "./addpop bob@whatever.com bobspasswd"

    I would like to do "./addpop bob@whatever.com $1a.c9583/cg$30930"or use the encrypted password from the old password file.

    We have moved many older users from one freebsd box to another by just copying master.passwd, editing it as needed and doing a pwd_mkdb, but I see that cpanel creates a "passwd" and a "shadow" in the /etc folder for the domain and not a "master.passwd" so I am sure its doing something different. Has anyone done this with cpanel?. I really would like to use the existing passwords and not have to go through the nightmare of telling a hundred people their new password or waiting for complaints from people who cannot login to email anymore.

    Thanks.
    You could just dump the hash in ~user/etc/domain.com/shadow. cPanel will auto rebuild its caches when it sees the file changed.

  4. #4
    Registered User
    Join Date
    Jan 2005
    Posts
    2

    Default

    Hi Nick,

    I am working on a similar problem. I've created the email account, removed the existing password from ~user/etc/domain.com/shadow and replaced it with an MD5 hash from the old server, restarted pop, and attempting to login as that user fails.

    Does exim need to be setup to handle MD5 in the shadow file? What actually triggers cpanel to suddenly read and understand MD5 from the shadow?

    Cheers.

  5. #5
    Member
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    300

    Default

    Would it be possible to open a ticket with this infomation so we can take a deeper look into this?
    -Todd Shipway

Similar Threads & Tags
Similar threads

  1. Login Box Pops Up Randomly
    By rkenney in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 05-23-2008, 02:19 PM
  2. create mail accounts using existing md5 passwords
    By snapfrozen in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-24-2008, 10:00 PM
  3. embeded php within pops.html
    By kingdommedia in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-05-2007, 08:37 AM
  4. All pops not visible after transfer
    By Arsalan in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 09-21-2004, 06:20 AM
  5. how to change no. of sql's, pops etc
    By rinty in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 08-06-2002, 11:47 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube