Is it possible to automatically setup a default (catch-all) email address via api1 and postwwwacct? I have tried using the following code:
Thanks.Code:print $xmlapi->api1_query($cpuser, "Email", "dosetdef", array($opts['contactemail']) );
Is it possible to automatically setup a default (catch-all) email address via api1 and postwwwacct? I have tried using the following code:
Thanks.Code:print $xmlapi->api1_query($cpuser, "Email", "dosetdef", array($opts['contactemail']) );
Does anyone know if this is possible? Thanks.
I would like to know this also. Anyone?
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
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