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.

Moving hundreds of email accounts to cpanel server ?

Discussion in 'E-mail Discussions' started by nyjimbo, Apr 10, 2008.

  1. nyjimbo

    nyjimbo Well-Known Member

    Joined:
    Jan 25, 2003
    Messages:
    1,125
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    New York
    We have an assortment of non-cpanel boxes inhouse that have email accounts on them and as we consolidate them we find that some of them have hundreds of email accounts each using the old format of logging in with the account name (no '@domain.com' after it).

    So if the physical server is 'something.com' the email account names are bob1, tony4, mike6 and the users either login with the short name or the full server address (bob1@something.com) not a virtual host. Its easy enough to create the domain on a cpanel box, but not the user with the existing password. We do not care about filespace, home directories, shells, etc.

    What we would like to do is somehow parse the passwd file and grab enough info so we could import the usernames and passwords (nothing else about the account or existing email) and create new email accounts on the cpanel boxes (old and cpanel boxes running same OS version so passwd formats should be close). I can sed/awk/grep/etc.. anything to death and I fully understand the passwd file formats, etc. so this isnt new to me, just not sure how the cpanel/whm environment has to be fiddled with.

    Has anyone done this before?. I imagine it would be easy to figure out nibbling on the password file to get what I need, but is it possible to feed it to cpanel or process it with a series of steps so cpanel creates email accounts for the domain?.

    Hope this makes sense, if not I can give more detail.
     
  2. ffeingol

    ffeingol Well-Known Member
    PartnerNOC

    Joined:
    Nov 9, 2001
    Messages:
    215
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    DataCenter Provider
    Did you ever get an answer / solution to this? We have a client that wants to import about 300 email boxes (just the passwords etc. like you) and he does not want to have to type them all in.
     
  3. minotauro

    minotauro Well-Known Member

    Joined:
    Jan 19, 2004
    Messages:
    89
    Likes Received:
    0
    Trophy Points:
    6
    Do you found a solution to import email from another server to cPanel server?
     
  4. SeanLee

    SeanLee Well-Known Member

    Joined:
    May 23, 2004
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
    Any updates on this?
     
  5. web-a

    web-a Registered

    Joined:
    Oct 15, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    I'm interested in importing the email messages. I've searched for an automated way, but no luck. Any idea?
     
  6. SeanLee

    SeanLee Well-Known Member

    Joined:
    May 23, 2004
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
    I just created a FireFox macro using iMacros (free plugin for FireFox) which worked like a charm for creating the email accounts. I can post my plugin I suppose, but they are real easy to create (and I'm not a developer).

    As for importing the data, I used some IMAP migration tools that I found here:
    http://www.athensfbc.com/imap_tools/

    I've also heard good things about the IMAP Migration Tool 1.0:
    http://webscripts.softpedia.com/script/Email-Systems/Utilities/IMAP-Migration-Tool-38914.html

    Hope this helps,

    -SeanLee
     
  7. web-a

    web-a Registered

    Joined:
    Oct 15, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Thanks, it seems it is what I was searching for
     
  8. SeanLee

    SeanLee Well-Known Member

    Joined:
    May 23, 2004
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
Loading...

Share This Page