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.

Squirrelmail problem after moving account

Discussion in 'E-mail Discussions' started by I-Web, Jan 10, 2004.

  1. I-Web

    I-Web Well-Known Member

    Joined:
    Jul 7, 2003
    Messages:
    138
    Likes Received:
    0
    Trophy Points:
    16
    I moved an account from a server to another, and am now having a problem with squirrelmail just for that account....

    on the old server the account was stored at /home2/accountname

    on the new server it is stored at /home (doesnt have /home2)

    and now when i goto squirrelmail i get this error on the left

    ERROR : Could not complete request.
    Query: CREATE "INBOX.Sent"
    Reason Given: CREATE failed: Can't create mailbox node /home2/: Permission denied

    It mustve brought a setting with it during the transfer but i cant find where i can change it from /home2/ to /home/

    Thanks in advance
     
  2. snide

    snide Member

    Joined:
    Nov 4, 2002
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    I'm just dealing with the exact same issue today, too... except with a couple hundred accounts.

    I've checked the individual account settings and rummaged through even the Squirrelmail program files but haven't yet seen where this is changed.
     
  3. I-Web

    I-Web Well-Known Member

    Joined:
    Jul 7, 2003
    Messages:
    138
    Likes Received:
    0
    Trophy Points:
    16
    i only done 1 account, and then decided to check it,......

    Ive got another 48 to do :S

    But yeah, i cant find it anywhere :(
     
  4. snide

    snide Member

    Joined:
    Nov 4, 2002
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Ah, here we are:

    /home/username/etc/passwd
     
  5. I-Web

    I-Web Well-Known Member

    Joined:
    Jul 7, 2003
    Messages:
    138
    Likes Received:
    0
    Trophy Points:
    16
    AWESOME!!!!!

    OK.... next thing is...

    Is there a command that i could run that would change this for me for all accounts???? i was thinking of this

    perl -pi.bak -e "s/home2/home/g" passwd

    but how would i do that for all of the accounts without having to log into the etc for each account?? possibly...

    perl -pi.bak -e "s/home2/home/g" /home/*/etc/passwd
     
  6. I-Web

    I-Web Well-Known Member

    Joined:
    Jul 7, 2003
    Messages:
    138
    Likes Received:
    0
    Trophy Points:
    16
    Just to let you know, ive just tested this and it works :D

    just run

    perl -pi.bak -e "s/home2/home/g" /home/*/etc/passwd

    that will create a backup aswell just incase it upsets anything
     
Loading...

Share This Page