Hello.
I have recently set up a new server, and decided to mess with Virtualmin as a hosting panel. I am working on coding up a PHP front end for the server, but I need to figure out how your command line system works first. I looked through the documentation for the CLI, and found what I need but when ever I run the command to add an account, it always gives an error.
So here is what I am trying to do from CLI:
Create an account for Domain test.com
Description will be a acc #, like 1234
Password will be “test” in this example
It will use the “Default Template”
it will go with the plan named “Free Plan”
It will get its limits, and functions from the plan and template.
Give the site a static IPv6 from my pool of addresses
make the site an account, just like if I made it from the virtualmin panel.
The plan has all features enabled, minus mailing lists and some admin features.
So heres the command I run…
virtualmin create-domain --domain test.com --pass test --unix --dir --desc “1234” --allocate-ip6 --template “Default Settings” --plan “Free Plan” --limits-from-plan --features-from-plan
But the error I get is this:
Mail for the domain cannot be enabled unless an administration user is created.
When I add an account using virtualmin I never have this issue, and I have yet to find a way to fix this from searching this forum. Is anyone able to help me out?