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.

Changing mailbox's email address [moved]

Discussion in 'E-mail Discussions' started by chrisjj, Jul 18, 2006.

  1. chrisjj

    chrisjj Member

    Joined:
    Jul 18, 2006
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Anyone know how to do this?

    Deleting the mailbox and creating a new one is not an option since I need to preserve the content.

    Thanks.
     
  2. RickG

    RickG Well-Known Member

    Joined:
    Feb 28, 2005
    Messages:
    238
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    North Carolina
    From your comment, is the user storing a lot of mail on the server and using IMAP access?

    A users mail is stored in various folders under /home/AccountName/mail/DomainName/User/ if using maildir, or in a single file if using mbox.

    I would probably:

    1) Create the new email address
    2) Temporarily set a forward on the old mailbox to point to the new mailbox
    3) Depending on the format, either copy the files over or cat the two files together.
    4) Delete the old account

    Its easy enough to create a test email account and go through the process before working with the live account.
     
  3. chrisjj

    chrisjj Member

    Joined:
    Jul 18, 2006
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Thanks, but that's just what I want to avoid. I want to simply edit the mailbox's email address.
     
  4. Lyttek

    Lyttek Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    770
    Likes Received:
    3
    Trophy Points:
    18
    This is in the same domain, correct? In theory, would it be possible to create the new address within cPanel, then jump into a shell and delete the new address from the mail directory, then rename the old directory to the same as the new one?

    Just a thought, I have not tried it, and will not be held responsible. Do some testing first on junk accounts you create.


    FWIW, I'd go with RickG's answer. What we 'want' and what 'has to happen' are not always the same thing ;)
     
  5. chrisjj

    chrisjj Member

    Joined:
    Jul 18, 2006
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    > This is in the same domain, correct?

    Correct.

    > jump into a shell

    No shell available on this account, sadly.

    Thanks for the idea.
     
  6. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    Do you have root access?
     
  7. chrisjj

    chrisjj Member

    Joined:
    Jul 18, 2006
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    No. This is on a shared hosting machine.
     
Loading...

Share This Page