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.

Server to server move emptied mailbox

Discussion in 'E-mail Discussions' started by Bdzzld, Dec 15, 2005.

  1. Bdzzld

    Bdzzld Well-Known Member

    Joined:
    Apr 3, 2004
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    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. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    Might it be the case that the servers aren't using the same mail format? i.e. one using mbox, the other maildir?
     
  3. Bdzzld

    Bdzzld Well-Known Member

    Joined:
    Apr 3, 2004
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    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. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    Maybe that's it.

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

    Bdzzld Well-Known Member

    Joined:
    Apr 3, 2004
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    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. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    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.
     
  7. Bdzzld

    Bdzzld Well-Known Member

    Joined:
    Apr 3, 2004
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    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. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    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.
     
  9. Bdzzld

    Bdzzld Well-Known Member

    Joined:
    Apr 3, 2004
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    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. Bdzzld

    Bdzzld Well-Known Member

    Joined:
    Apr 3, 2004
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    Hi,

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

    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. kship

    kship Member

    Joined:
    Oct 29, 2004
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    HUNTSVILLE, TEXAS
    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
     
    #11 kship, Dec 17, 2005
    Last edited: Dec 17, 2005
  12. gflamerich

    gflamerich Well-Known Member

    Joined:
    Jul 21, 2003
    Messages:
    122
    Likes Received:
    0
    Trophy Points:
    16
    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!
     
    #12 gflamerich, Dec 18, 2005
    Last edited: Dec 19, 2005
Loading...

Share This Page