Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 12 of 12
  1. #1
    Member
    Join Date
    Apr 2004
    Posts
    320

    Thumbs down Server to server move emptied mailbox

    Hi,

    Today I moved a couple of accounts from one cPanel server to another via WHM to discover that most of the account's email boxes were empty on the new server.

    Is this a known bug? I've still got a couple of hundred accounts to go and would like it solved before I go on...

    Any help is appreciated...
    Thanks.

  2. #2
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default

    Might it be the case that the servers aren't using the same mail format? i.e. one using mbox, the other maildir?

  3. #3
    Member
    Join Date
    Apr 2004
    Posts
    320

    Unhappy

    Hi,

    That's exactly the case. The old server is using MailDir/Courier (as once advised by CPanel) and the newer server is using UW_IMAP. There's a mail conversion step somewhere along the way, but I guess it's not going correctly...

  4. #4
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default

    Quote Originally Posted by Bdzzld
    There's a mail conversion step somewhere along the way, but I guess it's not going correctly...
    Maybe that's it.

    I guess you'd better convert the new server to maildir/courier before moving users.

  5. #5
    Member
    Join Date
    Apr 2004
    Posts
    320

    Default

    Okay,

    That was my idea too, but as far as I know support for MailDir/Courier has been discontinued. I'll issue a BUG report and hope they'll fix the problem very soon.

  6. #6
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Quote Originally Posted by Bdzzld
    Okay,

    That was my idea too, but as far as I know support for MailDir/Courier has been discontinued. I'll issue a BUG report and hope they'll fix the problem very soon.
    Support for maildir certainly hasn't been discontinued. It's the preferred format to use and cPanel have said it will be the default for new cPanel installations in the near future.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  7. #7
    Member
    Join Date
    Apr 2004
    Posts
    320

    Question

    Hi,

    The new server has been installed in November and is running the default format.
    How can I *safely* convert the mailboxes on this server to MailDir/Courier then?

    Thanks.

  8. #8
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    1. Make sure that /scripts/rpmup and /script/sysup run cleanly (i.e. no errors)

    2. Make sure you've upgraded to the latest version of the cPanel tree that you're using

    3. Run /scripts/convert2maildir and take the backup option (you may need to temporarily configure Backups in WHM if you don't use them)

    4. Run the script in 3. again and select the convert option. Tail the log it mentioned and watch. If you have any large mailboxes on the server they can take some time to convert.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  9. #9
    Member
    Join Date
    Apr 2004
    Posts
    320

    Default

    Okay,

    I've done the conversion and it seemed to have worked for at least one of the accounts on the server (I've sent a test e-mail to one of the accounts). Howver, the following was found in the logfile :

    Code:
    ** Default histories successfully created ***
    Package 'Log' already installed, skipping
    Package 'Mail_Mime' already installed, skipping
    Package 'File' already installed, skipping
    Package 'Date' already installed, skipping
    Package 'Net_Socket' already installed, skipping
    Package 'Net_URL' already installed, skipping
    Package 'Auth_SASL' already installed, skipping
    Package 'HTTP_Request' already installed, skipping
    Package 'XML_RPC-1.4.4' already installed, skipping
    DBD::mysql::st execute failed: Table 'horde.horde_categories' doesn't exist at /usr/local/cpanel/bin/horde_update_usernames line 42.
    DBD::mysql::st fetchrow_hashref failed: fetch() without execute() at /usr/local/cpanel/bin/horde_update_usernames line 43.
    [maildirupdate] Update Complete
    Any ideas what the errors mean?
    Thanks.

  10. #10
    Member
    Join Date
    Apr 2004
    Posts
    320

    Default

    Hi,

    After the conversion Horde and SquirrelMail no longer function either...

    Code:
    Notice: (null)(): [CLOSED] IMAP connection broken (server response) (errflg=1) in Unknown on line 0
    I'm really thinking of switching all my servers from cPanel to DirectAdmin... Lost of stuff in cPanel is not working as it should be... FP extensions suddenly don't work any more, and now this.. I've been using cPanel for years, but I'm getting pretty frustrated right now...

    Regards.

  11. #11
    Member kship's Avatar
    Join Date
    Oct 2004
    Location
    HUNTSVILLE, TEXAS
    Posts
    21

    Default lost email=lost clients

    Will this solution work to restore accounts from backup as well after converting? i have all of the accounts that were on the OLD server backed up. The OLD server is now turned off.

    Ken
    Last edited by kship; 12-17-2005 at 10:16 AM.

  12. #12
    Member
    Join Date
    Jul 2003
    Posts
    118

    Default Also moving to a maildir didn't worked

    What if you can't upgrade one of the boxes? We are moving a client from a server that doesn't belong to us ..... we had converted to maildir, they didn't.
    We tried to copy the account a couple of times, and had a lot of problems with emails, even copying script says "Converting to maildir if needed - done". We find all the "inbox" files but no mails were converted and copied to maildir structure.
    Also mail users have problems to login, most of accounts couldn't login. we had to reset passwords to most of them.
    Btw, the account we are trying to move is a reseller that has 50 accounts...so, we are looking for a solution to bring this client (and his accounts) to us.....

    Is there any way to proceed?
    We are using
    WHM 10.8.0 cPanel 10.8.1-S31
    Fedora i686 - WH

    Anf tho other box has
    WHM 10.8.0 cPanel 10.8.1-S31
    RedHat 9 i686 - WHM X v3.1.0

    Thanks
    Gustavo

    _____________________________
    For the records

    Chirpy help us. (Once more time!!!)
    Told us to run again convert2maildir, and a new option was showed:
    3) Convert partially converted mail accounts

    And everithing was ok!
    Last edited by gflamerich; 12-19-2005 at 06:14 PM. Reason: Solved

Similar Threads & Tags
Similar threads

  1. How to move backups files from server to server?
    By zenid in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 12-09-2008, 09:18 PM
  2. Replies: 1
    Last Post: 07-09-2007, 07:48 PM
  3. Replies: 0
    Last Post: 11-09-2005, 01:08 PM
  4. Server wide scripting issues after server move...help!!
    By d00t in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-20-2005, 06:55 PM
  5. How to move certificate files from one server to another server?
    By pingo in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-12-2003, 12:55 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube