Hi there,
I`m a hosting reseller and I`ve got to move all our client accounts (with many email adresses!) from a server that runs cpanel to a server that runs DirectAdmin. I`ve got a lot of email accounts to move, so it would be nice if I could do this with a script instead of doing this manually by logging in into my DirectAdmin Panel and adding each mail account (and aliases) one at a time!
I`ve already found something that looks usefull on this forum:
http://www.directadmin.com/forum/showthread.php?threadid=258
But I`m not much of a programmer so I'd need some help with this, although I will try it on my own as much as possible. This script allows to send a http request to my server with various parameters, like http://user:[email protected]/somedir/some.file?query=string&this=that but I would need to know what parameters I need in order to create the mail accounts.
A helping hand would greatly be appreciated.
Note: I do not have full control of the servers, only to their respective administration panels: cpanel and the directadmin panel. And of course I have access to the public_html folder. Due to these limitations, I think this script is my best option, and using an external csv file to feed all usernames, passwords, quotas and aliasses to this script.
Could someone please show me the correct syntax to build the url that is needed to trigger DirectAdmin to create a new mailbox? Is a properly constructed url enough ($_GET variables) or would I need to combine this with a self made form ($_POSTed variables)?
Or perhaps there is an easier way to go about?
Any help would be greatly appreciated!
JM.
I`m a hosting reseller and I`ve got to move all our client accounts (with many email adresses!) from a server that runs cpanel to a server that runs DirectAdmin. I`ve got a lot of email accounts to move, so it would be nice if I could do this with a script instead of doing this manually by logging in into my DirectAdmin Panel and adding each mail account (and aliases) one at a time!
I`ve already found something that looks usefull on this forum:
http://www.directadmin.com/forum/showthread.php?threadid=258
But I`m not much of a programmer so I'd need some help with this, although I will try it on my own as much as possible. This script allows to send a http request to my server with various parameters, like http://user:[email protected]/somedir/some.file?query=string&this=that but I would need to know what parameters I need in order to create the mail accounts.
A helping hand would greatly be appreciated.
Note: I do not have full control of the servers, only to their respective administration panels: cpanel and the directadmin panel. And of course I have access to the public_html folder. Due to these limitations, I think this script is my best option, and using an external csv file to feed all usernames, passwords, quotas and aliasses to this script.
Could someone please show me the correct syntax to build the url that is needed to trigger DirectAdmin to create a new mailbox? Is a properly constructed url enough ($_GET variables) or would I need to combine this with a self made form ($_POSTed variables)?
Or perhaps there is an easier way to go about?
Any help would be greatly appreciated!
JM.