How to create an Email Account in Kloxo via PHP?

344 Views Asked by At

I'd like to create email accounts ([email protected]) 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 .

1

There are 1 best solutions below

0
On

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