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!

cPanel / postwwwacct / account creation process question

Discussion in 'cPanel Developers' started by thomasall, Mar 8, 2011.

  1. thomasall

    thomasall Registered
    PartnerNOC

    Joined:
    Mar 8, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    51
    Does anyone know how I can change the default email address that cPanel creates to a fixed one when an acocunt is created.

    Example:
    cPanel creates default account emails like this: username@domain.com

    I need it to be something fixed like:
    blahblah@domain.com

    Does anyone know?
     
  2. thomasall

    thomasall Registered
    PartnerNOC

    Joined:
    Mar 8, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    51
    Can moderator please move this to the "Developer" forum.
     
  3. cPanelDavidN

    cPanelDavidN Integration Developer

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    3
    Trophy Points:
    68
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Hi tomasall,

    The "system" email account that is generated during account creation can not be altered.

    One method to achieve the same end result would be to create your fixed (or "known") email account with API2's Email::addpop and then alter the "catchall" address with API2's Email::addforward. And you can do those two operations in your postwwwacct hook.

    The cPanel user can always change this "catchall", but they could always change it in the first place, it's arguable that there's really no lose/gain of functionality that wasn't already there...you're just setting it up in a way that's convenient for your process.

    Best Regards,
    -DavidN
     
    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