1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

plesk 1.6 api + mail alias

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by joshua strebel, Jun 11, 2009.

  1. joshua strebel

    joshua strebel Guest

    0
     
    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?
     
  2. joshua strebel

    joshua strebel Guest

    0
     
    ANswer to my own question...

    update->add
    Code:
    <mail>
      <update>
        <add>
    
     
Loading...