• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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