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.

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:
    1
    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:
    1
    Can moderator please move this to the "Developer" forum.
     
  3. cPanelDavidN

    cPanelDavidN Integration Developer
    Staff Member

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    1
    Trophy Points:
    18
    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
     
Loading...

Share This Page