Article ID: 6085, created on Feb 26, 2009, last review on Aug 12, 2014

  • Applies to:
  • Plesk 8.6 for Linux/Unix

Symptoms

Parallels Plesk Panel version 8.6.0 is running.

In case is there are two domain without mail accounts in Plesk, and we request information about them with:

<packet version="1.4.2.0">
    <mail>
    <get_info>
      <filter>
        <domain_id>841</domain_id>
      </filter>
      <cp_access/>
      <mailbox/>
      <redirect/>
      <aliases/>
      <permissions/>
    </get_info>
    <get_info>
      <filter>
        <domain_id>842</domain_id>
      </filter>
      <cp_access/>
      <mailbox/>
      <redirect/>
      <aliases/>
      <permissions/>
    </get_info>
  </mail>
</packet>


Plesk returns incorrect response:

<packet version="1.4.2.0">
  <mail>
    <get_info> <- open tag
      <result>
        <status>ok</status>
      </result>  <- close tag is missing
      <get_info>  /
        <result>
          <status>ok</status>
        </result>
      </get_info>
    </get_info>
  </mail>
</packet>


While the proper response should be:

<packet version="1.4.2.0">
  <mail>
    <get_info> <- open tag
      <result>
        <status>ok</status>
      </result>
    </get_info> <- close tag exists
    <get_info>
      <result>
        <status>ok</status>
      </result>
    </get_info>
  </mail>
</packet>

Resolution

The problem has been fixed since version 9.0.1.

Hotfix for Parallels Plesk Panel Unix version 8.6.0 is attached. To install it you should replace existent file $PRODUCT_ROOT_D/admin/plib/api-rpc/AgentMail.php with attached one and correct owner and permissions, it should be root:root, 755. You may correct permissions with commands chown and chmod:

~# chown root:root /usr/local/psa/admin/plib/api-rpc/AgentMail.php
~# chmod 755 /usr/local/psa/admin/plib/api-rpc/AgentMail.php

Please remember to backup old file AgentMail.php before replacement.

IMPORTANT: Do not modify the script. Corrupted script may cause inaccessibility of Parallels Plesk Panel. After the script is installed verify it has correct md5 sum.

Check md5 sum with command md5sum on RedHat-like operating systems, Debian or Ubuntu and command md5 on FreeBSD.

~# md5sum AgentMail.php
bf340f8c12c697ae798c174afc20e35a  AgentMail.php
~#

In case md5 sum does not match download and install the script anew.

Attachments

9fa0130c84cac4b292697ade62270a40 a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 b8ef5052d936e902043e41759118114e 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF