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.

Trying to migrate customers' email between cPanel accounts and I think I screwed something up.

Discussion in 'E-mail Discussions' started by josiahsprague, Feb 5, 2014.

  1. josiahsprague

    josiahsprague Registered

    Joined:
    Feb 5, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    I'm trying to migrate customers' email between cPanel accounts and I think I screwed something up.

    I set up the email accounts on the new server, then I copied the /mail/ directory and all of it's subfolders from the old server to the new server.

    When users log in, (using Squirrelmail) they see all of the messages they had in their inboxes, but when they try to go to their mail folders they are seeing an error like this:

    ERROR: Could not complete request.
    Query: SELECT "INBOX.FOLDERNAME"
    Reason Given: Mailbox doesn't exist: INBOX.FOLDERNAME

    The folders are listed on the side, but for some reason Squirrelmail thinks they don't exist. I want my clients to be able to access their email. What do I need to do?

    After Google searching, it seems I may have forgotten to copy a directory something along the lines of /etc/domainname that may be causing the problem, but I no longer have access to the old server. Is there anything I can do?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Check to make sure the permissions/ownership values for the "mail" directory and it's subdirectories match up to what you see for another account that's working as intended. The following command will help with permission values:

    Code:
    /scripts/mailperm $username
    Thank you.
     
  3. josiahsprague

    josiahsprague Registered

    Joined:
    Feb 5, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    I don't have any accounts that are working as intended at the moment. Do you know what the permissions should be? Right now they are 755.

    I'm not sure how to run that command. Can you clarify?
     
  4. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    Log into your server via SSH and run for the affected account

    /scripts/mailperm username
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    It appears you might not have root access to this server. If that's the case, I suggest contacting your web hosting provider for assistance so they can correct any permission issues if necessary.

    Thank you.
     
  6. josiahsprague

    josiahsprague Registered

    Joined:
    Feb 5, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Thanks for all the help. Can anyone tell me what that script does exactly?
     
  7. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    /usr/local/cpanel/scripts/mailperm looks at mail-related files' permissions, and attempts to fix them if necessary.

    Run it with the --help argument to see the options you can pass it, and with the --verbose argument to see exactly what it does.

    /scripts, in recent versions of cPanel, is a symbolic link to the /usr/local/cpanel/scripts directory, and I used the full path for completeness. /scripts was once itself a directory, but it is now a symlink to the actual directory.
     
  8. josiahsprague

    josiahsprague Registered

    Joined:
    Feb 5, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    This is probably something super obvious that I'm missing but it seems that neither /scripts/mailperm nor /usr/local/cpanel/scripts/mailperm exist on my server. (I was able to get shell access).

    Any ideas? Thanks again!
     
  9. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    Um, are you root?
     
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You will not have the ability to run that command without root access. I recommend consulting with your web hosting provider for assistance with this issue.

    Thank you.
     
Loading...

Share This Page