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

Problems with RPC API and mail names

Discussion in 'Plesk for Linux - 8.x and Older' started by sclinter, Aug 7, 2006.

  1. sclinter

    sclinter Guest

    0
     
    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:

    info@domain1.com - succeed
    info@domain2.com - fails
    info@domain3.com - 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>aaa@aaa.co.uk</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>xxx@xxx.co.uk</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
     
  2. jwdick

    jwdick Guest

    0
     
    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:

    mailname@domain1.com and mailname@domain2.com would have to have different passwords IF you use "mailname" only as the account.
     
  3. sclinter

    sclinter Guest

    0
     
    Ahh, that makes sense, thanks a lot.
     
Loading...