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

script for create email Account

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by wfirefox, Oct 29, 2009.

  1. wfirefox

    wfirefox Basic Pleskian

    20
    57%
    Joined:
    Oct 29, 2009
    Messages:
    47
    Likes Received:
    0
    hello,

    I use Parallels Plesk Panel 9.0 with Centos.
    I want create much email account for may users.
    but with the pannel is easy but not speed for 600 users.

    I like use a script for create this email account... soemeone use this or have ideas if is possible ?

    help me please...
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,564
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
  3. wfirefox

    wfirefox Basic Pleskian

    20
    57%
    Joined:
    Oct 29, 2009
    Messages:
    47
    Likes Received:
    0
    thanks

    thanks but I don't undestand what I will do ?

    how use Plesk API RPC ? and In "Parallels Plesk Panel 9.0 API RPC Reference" give information but not the script for create email account.

    what I will do ?
     
  4. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,564
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
  5. wfirefox

    wfirefox Basic Pleskian

    20
    57%
    Joined:
    Oct 29, 2009
    Messages:
    47
    Likes Received:
    0
    ok

    ok it's very good, and this answer to my question but I don't understand how to do many email account ?
    is not possible to find the different name in a list ? how to execute the Xml on remote server ?

    have you your docs in french ?

    thanks
     
  6. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,564
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia

    Attached Files:

    • api.zip
      File size:
      605 bytes
      Views:
      95
  7. wfirefox

    wfirefox Basic Pleskian

    20
    57%
    Joined:
    Oct 29, 2009
    Messages:
    47
    Likes Received:
    0
    ok thanks !

    but, I find this, very complicating for create email account !
    I have 800 email account to create in same domain: I must create a Xml files with header next integrate one by one the name and use the perl script for execute ! (for exemple I don't understand what is "domain_id", or what password use in header)

    is too long !


    It's not possible to have a easy way for much creation ? for exemple a script witch use a file with all names and create emails account automatically ?
     
  8. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,564
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    domain_id is ID of domain for which you create mailboxes. password_type can be plain or crypt if you want more security.
    Usage of API requests for creation of plural objects the most widespread method now and it is used everywhere. Theoretically it is possible to write a script which is necessary to you, but it will occupy much more time because it will be necessary to describe all necessary parametres for each mailbox, as well as xml file for API request.
     
  9. wfirefox

    wfirefox Basic Pleskian

    20
    57%
    Joined:
    Oct 29, 2009
    Messages:
    47
    Likes Received:
    0
    ok

    I just want something witch is speed and earn more time for create much email account.
     
  10. Hi wfirefox,

    I'm having the same difficulty that you listed in the above post, could you tell me if could make the creation of multiple email accounts through Plesk?

    Actually I found the docs are very confusing.

    Thanks!
    CbdA
     
  11. wfirefox

    wfirefox Basic Pleskian

    20
    57%
    Joined:
    Oct 29, 2009
    Messages:
    47
    Likes Received:
    0
    no

    sorry Clayton B. dos Anjos

    I don't find how do.

    so I use a another solution (live@edu by Microsoft) because I have Student.

    but for Parallels Plesk Panel I not find how do for make the creation of multiple email accounts.
     
  12. Thanks

    Hi wirefox,

    I find it. Try "%plesk_bin%\mail.exe" --create user@domain -passwd paswword

    Create this in .BAT file and GO!!


    Good luck!
     
  13. Thanks Hi wirefox,

    I find it. Try "%plesk_bin%\mail.exe" --create user@domain -passwd paswword

    Create this in .BAT file and GO!!


    Good luck!
     
  14. anthony2610

    anthony2610 New Pleskian

    11
     
    Joined:
    Jul 10, 2012
    Messages:
    11
    Likes Received:
    0
    Hi Clayton B.dos Anjos

    can you tell more steps to do this? i still not to understand this describle

    thanks!
     
  15. Hi anthony2610!

    This script works in Windows Console. Create a .Bat file contain the command line bellow:

    "%plesk_bin%\mail.exe" --create youruser@yourdomain.tld -passwd yourpassword


    Cheers!
     
  16. anthony2610

    anthony2610 New Pleskian

    11
     
    Joined:
    Jul 10, 2012
    Messages:
    11
    Likes Received:
    0
    Thank Clayton

    but i have problem, i have Linux Server, how can i create multiple acc like window?
     
  17. FirstPoint

    FirstPoint Basic Pleskian

    17
    85%
    Joined:
    Feb 8, 2011
    Messages:
    37
    Likes Received:
    0
    here's how to create an account on Linux anthony:
    /usr/local/psa/bin/mail --create EMAIL@DOMAIN.TLD -passwd PASSWORD -mailbox true
     
Loading...