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!

Auto Setup Default Email Address with postwwwacct

Discussion in 'E-mail Discussion' started by musosmiffy, Nov 14, 2009.

  1. musosmiffy

    musosmiffy Registered

    Joined:
    Nov 10, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    Is it possible to automatically setup a default (catch-all) email address via api1 and postwwwacct? I have tried using the following code:

    Code:
    print $xmlapi->api1_query($cpuser, "Email", "dosetdef", array($opts['contactemail']) );
    Thanks.
     
  2. musosmiffy

    musosmiffy Registered

    Joined:
    Nov 10, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    Does anyone know if this is possible? Thanks.
     
  3. thomasall

    thomasall Registered
    PartnerNOC

    Joined:
    Mar 8, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    51
    I would like to know this also. Anyone?
     
  4. MattLee

    MattLee BANNED

    Joined:
    Aug 26, 2009
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    56
    Hello,

    It should be possible to create a postwwwacct script that will mimic the functionality you want outside of the API system by having it simply modify the /etc/valiases/domain.tld file directly and setting the catch-all that way.

    As far as API1 functions, I'm not showing anything in our documentation that lists the functionality to modify or alter the catch-all for a domain through it.

    You can view our documentation on the API1 email functions here:
    ApiEmail < ApiDocs/Api1 < TWiki
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelDavidN

    cPanelDavidN Integration Developer
    Staff Member

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    3
    Trophy Points:
    68
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    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