Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Nov 2009
    Posts
    2

    Default Auto Setup Default Email Address with postwwwacct

    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. #2
    Registered User
    Join Date
    Nov 2009
    Posts
    2

    Default

    Does anyone know if this is possible? Thanks.

  3. #3
    Registered User
    Join Date
    Mar 2011
    Posts
    3

    Question Re: Auto Setup Default Email Address with postwwwacct

    I would like to know this also. Anyone?

  4. #4
    BANNED
    Join Date
    Aug 2009
    Posts
    83

    Default Re: Auto Setup Default Email Address with postwwwacct

    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. #5
    Integration Developer cPanelDavidN's Avatar
    Join Date
    Dec 2009
    Location
    Houston, TX
    Posts
    496

    Default Re: Auto Setup Default Email Address with postwwwacct

    Short answer: Use API2 Email::addforward

    Please look at this thread: http://forums.cpanel.net/f42/cpanel-...tml#post805861 in the Developer Discussions.
    David Neimeyer
    Integration Developer

    sdk.cpanel.net
    APIs: XML-API API1 & API2
    Check Out: Developer Downloads Integration Blog
    Need Support? Support Ticket Developer Forum Feature Request

Similar Threads & Tags
Similar threads

  1. Auto-Creation Of MySQL DB with postwwwacct
    By Tyler.S in forum cPanel Developers
    Replies: 21
    Last Post: 05-03-2011, 07:27 AM
  2. Creation/Setup of Email Default in postwwwacct
    By Tyler.S in forum cPanel Developers
    Replies: 1
    Last Post: 09-29-2010, 09:07 AM
  3. postwwwacct auto create Mysql DB
    By msd25 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-24-2009, 10:39 AM
  4. Default address and Auto Responders
    By aegis in forum E-mail Discussions
    Replies: 0
    Last Post: 04-21-2009, 11:44 AM
  5. Default email address
    By candleback in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-06-2005, 09:36 PM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube