• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

plesk 1.6 api + mail alias

J

joshua strebel

Guest
I am trying to add a mail alias via the api 1.6 with plesk 9.2.1


$alias = 'foo'
Code:
<mail>
			<update>
				<set>
					<filter>
					<domain_id>$domainId</domain_id>
					<mailname>
					<name>$n</name>
					<alias>$alias</alias>
					</mailname>
					</filter>
				</set>
			</update>
		</mail>

And get back

Code:
   [status] => error
            [errcode] => 1029
            [errtext] => Authentification method is not specified

when passing the clients username,password in the packet. Is this command only work with admin credentials?

If I do use admin creds in packet..
I get

Code:
[status] => error
                                    [errcode] => 1023
                                    [errtext] =>  : Invalid mail alias.

Any have a code example of setting a mail alias by the api?
 
ANswer to my own question...

update->add
Code:
<mail>
  <update>
    <add>
 
Back
Top