• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

API Create Subscription Mail Settings

eworksmedia

New Pleskian
When creating a new subscription via the API (Plesk 12) is there a way to specify the Mail settings? More importantly is there a way to turn off Mail when setting up a new subscription? Each time I create a subscription via the API Plesk spits out the following error:

Code:
New configuration files for the Apache web server were not created due to the errors in configuration templates: Template processing failed: file = /usr/local/psa/admin/conf/templates/default/domainWebmail.php, error = Template_Exception: Empty content was provided for config file /etc/httpd/conf/plesk.conf.d/webmails/horde/demon3zxc.e-worksmedia.com_webmail.conf file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php line: 47 code: 0.

Here's an example of the request I'm sending:

Code:
<packet version="1.6.3.0">
<webspace>
    <add>
      <gen_setup>
        <name>{{domain}}</name>
        <ip_address>{{ip_address}}</ip_address> 
      </gen_setup>
      <hosting>
        <vrt_hst>
          <property>
            <name>ftp_login</name>
            <value>{{ftp_user}}</value>
          </property>
          <property>
            <name>ftp_password</name>
            <value>{{ftp_pass}}</value>
          </property>
          <property>
            <name>seo-redirect</name>
            <value>none</value>
          </property>
          <ip_address>{{ip_address}}</ip_address>
        </vrt_hst>
      </hosting>
      <plan-name>Default Domain</plan-name>
    </add>
  </webspace>
</packet>
 
Do you have any errors when you try to reconfigure domain with

# /usr/local/psa/admin/bin/httpdmng --reconfigure-domain demon3zxc.e-worksmedia.com

?
 
Sorry to hi-jack the thread but I also am getting many API errors.
When I create subscriptions I get:
Code:
mailmng-outgoing failed: ERRORoutgoing:column name is not unique

Sometimes I cannot create subscriptions due to this error:
Code:
Failed to perform IDN conversion from UTF-8

I also cannot create subdomains due to
Code:
ProtDir_Apache::update() failed: Unable to create user protection directory:Service node is unknown for sysuser with id=0
)
 
Back
Top