Article ID: 111793, created on Aug 4, 2011, last review on May 9, 2014

  • Applies to:
  • Plesk 9.5 for Linux/Unix

ISSUE

Reseller receives 'Permission denied' in XML response when he tries to request a list of mailboxes from the domain he owns.
 
Steps to reproduce:
  • Create reseller with XML-API permission enabled. Create domain with a couple of mailboxes for this reseller.
  • Send API request as reseller:
 
<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.0.2">
   <mail>
     <get_info>
       <filter>
         <domain_id>4</domain_id>
       </filter>
       <cp_access/>
       <mailbox/>
       <aliases/>
       <permissions/>
     </get_info>
   </mail>
</packet>

As result:
<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.0.2">
  <mail>
    <get_info>
      <result>
        <status>error</status>
        <errcode>1006</errcode>
        <errtext>Permission denied.</errtext>
      </result>
    </get_info>
  </mail>
</packet>

RESOLUTION

Try to replace the file /usr/local/psa/admin/plib/api-rpc/AgentMail.php with the attached fix for Plesk 9.5.4 version.

Attachments

60d3e722783ac7177a2b4b4c13af4062 a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 6ef0db7f1685482449634a455d77d3f4 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF