Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

One domain for all email accounts?

Discussion in 'E-mail Discussion' started by rwtryb, Apr 2, 2018.

  1. rwtryb

    rwtryb Registered

    Joined:
    Apr 2, 2018
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    POland
    cPanel Access Level:
    Root Administrator
    I am looking for a solution that will allow clients registering WHMC accounts to set up an e-mail address generally available to everyone.

    And I can not find anything, we currently operate on WHMC + cPanel and the possibility to share the domain to register an e-mail account for all clients is unfortunately not there.

    (my domain AnotherDomain.com to create e-mail: email@AnotherDomain.com on one client account and email2AnotherDomain.com on another client account)

    I just want every customer to register an email account in my domain, which he gives him, and then the place counted on his account.

    Does anyone know if this possibility exists in other panels to manage the hosting?
    I apologize if my English is illegible.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    You could setup a custom bash script that makes use of the Email::add_pop cPanel UAPI function. Then, configure the custom bash script to automatically run during the account creation process as part of a post account creation hook. Here's some documentation to get you started:

    UAPI Functions - Email::add_pop - Developer Documentation - cPanel Documentation
    Tutorial - Create a Standardized Hook - Developer Documentation - cPanel Documentation
    Guide to Standardized Hooks - Whostmgr Functions - Developer Documentation - cPanel Documentation

    Note the email account would only be accessible directly from Webmail. It wouldn't be visible in the cPanel UI for each account.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice