• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Free Email Accounts

Z

ZeroPain

Guest
i want to offer free email acccounts on one of my sites, is there a script that will creat email account automaticly that intergreats with plesk?

I have looked though the API i am pretty skilled in php but not an expert. and i can't find anything there in the API to allow mail account creation.

I know i can do it via the /usr/local/psa/bin/mail.sh but i don't know of a way to run this via a php script running under apache. cause as i understand it needs to be run under root.

I do have root access to this server. I'm looking for a way to make my own or at least some help an idea on how to make a php creation script. so ppl visiting my website could sign up for a email account on that site. i can do everything myself save for the actual adding of the email account to the system. if anyone has any ideas or an example of a function i could use to do this it would be a great help.


Steven Norder
 
Since 7.5.3 Plesk API RPC supports operations with mailnames. Look at the content of psa-api-rpc-protocol package - there are requests format descriptions.
 
where would i go to get that or find more documenation on it cause the docs on the web site don't show that
 
Yeah looks like they haven't updated those docs cause says nothing about mail
 
I figured it out and made it work thank you very much for your help. and i am using the api-rpc interface but i guess they just added it in 7.5.3 i can't remember if i read this in this post or another.

Thank you again.


Steven
 
Back
Top