new users command line

I recently updated to a dedicated server, in the process I updated virtualmin to the latest version. When I run my scripts to create a user, I’m getting a different result than I did before I made the switch.

Here’s the command line call:

virtualmin create-user --domain example.com --user fred --pass password

on the old setup this would create fred@example.com and fred-example.com and assign them to the same user number.

on the new setup, this creates fred.example.com…hmm where is the setting to change that back to what I had before?

Thanks

Dan

Hi Dan,

I think you’re looking for System Settings -> Server Templates -> Default -> Mail for Domain… on that screen, at the bottom, you’ll see “Format for usernames that include domain”.

Set that to user@domain and you should be set!

-Eric