I'd like to create email accounts (email@myserver.com) dynamically with PHP, i have a VPS server with HyperVM and Kloxo. I know a solution for Cpanel + Php integration but for kloxo i did not discover .
I don't recommend using the webcommand API as it is unsecure. (maybe using php sessions it would be alright though).
I do it via PHP exec and call the bash script directly:
sh /script/add --parent-class=mmail --parent-name=example.com --class=mailaccount --name=dummy --v-password=123456
Some of you may be against using PHP exec(); IMO it can be used safely.
Cheers, H.
KimeraLive.com
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.