Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    May 2008
    Posts
    6

    Question How to change email username

    Ok I searched it and I couldnt find it.. hmm
    How can I change some email account username ??

    (I need to keep current emails in the inbox, I know I can just delete and create another one, but I need to change the username from one to another)
    Is this possible trough cpanel ?

  2. #2
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,066

    Default Create new mailbox, then copy the mail

    Since you want to save the existing messages, the easiest way to do this is to create a new account with the desired username using cPanel, copy the mail between the accounts using the shell, and then delete the old account using cPanel.

    Mail on a cPanel server is stored in the following format:

    /$HOME/$USER/mail/$DOMAIN/$MAILBOX

    where:

    $HOME = the account's home directory;
    $USER = the account's cPanel username;
    $DOMAIN = the domain assigned to the account, and;
    $MAILBOX = the actual e-mail address defined in the account's cPanel.

    Mail is stored in two directories within this directory, new and cur. new is for mail that has not yet been read, and cur is for mail that has already been read at least once.

    So if you have an e-mail address, box1@mytestdomain.com, and you want to change its name to newbox@mytestdomain.com, you can create the new address, newbox@mytestdomain.com in cPanel, then, from the shell, copy the mail using these commands:

    Code:
    # cp -Rp /home/mytestdo/mail/mytestdomain.com/box1/cur/* /home/mytestdo/mail/mytestdomain.com/newbox/cur/
    # cp -Rp /home/mytestdo/mail/mytestdomain.com/box1/new/* /home/mytestdo/mail/mytestdomain.com/newbox/new/
    # /scripts/mailperm
    This assumes that the account for mytestdomain.com is mytestdo, and that its home directory is /home. Also, while the -p switch to the cp command specifies that permissions and ownerships be preserved, it is a good idea to run mailperm after manipulating mail-related files.
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

Similar Threads & Tags
Similar threads

  1. Replies: 3
    Last Post: 12-20-2010, 06:46 AM
  2. how to change email username syntax
    By bittermang in forum E-mail Discussions
    Replies: 2
    Last Post: 07-26-2007, 02:23 AM
  3. Can we change email username / password outside cpanel?
    By kigoobe in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 10-23-2006, 12:09 PM
  4. Change to email username requirements?
    By sclifford in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 06-14-2005, 03:09 PM
  5. Change username
    By WillyMore in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-20-2004, 04:24 AM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube