Results 1 to 2 of 2

Thread: Unable to Update Mail Account Password Via API

  1. #1

    Unhappy Unable to Update Mail Account Password Via API

    Hi,

    I'm creating mail accounts via the XML API. After creating an account I can login via POP to check email.
    If I send a request to update the mail account password via the XML API I get a 'ok' status code from the server but the password is not being updated. Yet, if I

    Here is my request packet:

    <?xml version="1.0" encoding="UTF-8"?>
    <packet version="1.4.2.0">
    <mail>
    <update>
    <set>
    <filter>
    <domain_id>1</domain_id>
    <mailname>
    <name>testuser30</name>
    <mailbox>
    <enabled>true</enabled>
    <quota>20480000</quota>
    </mailbox>
    <password>Drpepp</password>
    <password_type>plain</password_type>
    <permissions>
    <cp_access>false</cp_access>
    </permissions>
    </mailname>
    </filter>
    </set>
    </update>
    </mail>
    </packet>

    Here is the response packet from Plesk:

    <?xml version="1.0" encoding="UTF-8"?>
    <packet version="1.4.2.0">
    <mail>
    <update>
    <set>
    <result>
    <status>ok</status>
    <mailname>
    <name>testuser30</name>
    </mailname>
    </result>
    </set>
    </update>
    </mail>
    </packet>

    After getting this response that seems to indicate that my request was successfully performed I telnet to the server's port 110 and try to log in via POP commands and am unable to do so with the new password, however I can still log in with the old password, seemingly indicating that the password was not changed.

    Can anyone tell me what I'm doing wrong?



  2. #2
    Bit Poster
    Join Date
    Apr 2012
    Posts
    3

    Default help!

    i'v got same problem.
    how can i help change passwords via plesk api?
    i didn't found anywhere..
    please help



Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •