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.

Auto Setup Default Email Address with postwwwacct

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

  1. musosmiffy

    musosmiffy Registered

    Joined:
    Nov 10, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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:
    1
    Does anyone know if this is possible? Thanks.
     
  3. thomasall

    thomasall Registered
    PartnerNOC

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

    MattLee BANNED

    Joined:
    Aug 26, 2009
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    0
    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
     
  5. 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
Loading...

Share This Page