• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Problems with RPC API and mail names

S

sclinter

Guest
Hi,
I'm trying to add mailnames to my plesk system via the RPC API, I've managed to get it working however, when I try and add 2 mail names with the same name to different domains the first one succeeds and all subsequent ones fail, for example:

[email protected] - succeed
[email protected] - fails
[email protected] - fails

Here is the XML I'm using...

This one succeeds...
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<packet version="1.4.1.0">
<mail><create><filter><domain_id>517</domain_id>
<mailname><name>info</name>
<redirect><enabled>true</enabled>
<address>[email protected]</address>
</redirect>
<password>hfsd75y34u</password>
</mailname>
</filter>
</create>
</mail>
</packet>

This second one fails...
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<packet version="1.4.1.0">
<mail><create><filter><domain_id>522</domain_id>
<mailname><name>info</name>
<redirect><enabled>true</enabled>
<address>[email protected]</address>
</redirect>
<password>hfsd75y34u</password>
</mailname>
</filter>
</create>
</mail>
</packet>

The error I get back from the API is as follows:

ERROR: Unable to create mailname :Unable to update the mail name properties:
The password is incorrect, use at least 5 characters. The password should not contain mail name as its part.
Only Latin characters, no dictionary words (optional). (1023)


It seems to suggest that it's something to do with the password but this is not the case, it seems that it is trying to update the existing mailname of the same name even though its on a different domain.

This is really urgent so any help would be really appriciated!
Many thanks,
Tom
 
To use duplicate passwords, you must use "full names" for email names. From the Control Panel, click <SERVER><MAIL> and make sure you have the "use full names only" check box checked.

If you use short names, Plesk uses the password to determine what account you want. Example:

[email protected] and [email protected] would have to have different passwords IF you use "mailname" only as the account.
 
Back
Top