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.

How to create an email account from the backend?

Discussion in 'E-mail Discussions' started by pratapsingh, Apr 5, 2009.

  1. pratapsingh

    pratapsingh Active Member

    Joined:
    Mar 20, 2009
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Hi

    I am using exim mail server for my cpanel. And I want to create an email account from the backend ( via ssh ) without using cPanel addpop script or any other scripts.
    I want to create it manually.
    I want to create everything for the mail user manually from the console. And want it to display in my cpanel also .

    Help me regarding this ..?
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Would you be open to using our APIs for this or no?
     
  3. pratapsingh

    pratapsingh Active Member

    Joined:
    Mar 20, 2009
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Create an Webmail user via ssh

    I got the solution .////

    Create an Webmail user via ssh

    You need to do the following:
    1. Add an entry for the new account to the /home/USER/etc/DOMAIN/passwd file.
    2. Add the password for the new account to the /home/USER/etc/DOMAIN/shadow file using standard Unix "crypt" encryption.
    Note I just Copied the existing encrypted password of the user to new user xyz@domain.com
    3. If you want a quota for the account, add an entry in /home/USER/etc/DOMAIN/quota (I think the values are in bytes).
    4. Create a directory for the account in /home/USER/mail/DOMAIN directory.
    5. If you have logged in as root then change the ownership to user. [chown user.user /home/User/mail/Domain/xyz -R]
    6. Create a soft link /home/USER/mail directory for new mail user xyz\@Domain_com -> Domain.com/xyz/
    7. You can also set the maildirsize by editing the /home/USER/mail/Domain/xyz/maildirsize
    8. Run this following scripts to take effect in cpanel.

    /scripts/updateuserdomains
     
Loading...

Share This Page