Is there any way I can make the following changes in Virtualmin via a command-line command?
Server Templates --> Mail for domain --> Format for usernames that include domain --> USENAME@DOMAIN
and
Module Config --> Defaults for new domains --> Domain name style in username --> FULL DOMAIN NAME
If made a little installation and customization script for Virtualmin…if I can find a command-line command for these changes, I don’t have to login to Virtualmin to do them manually
Check out the list-template, get-template, and modify-template features.
They should allow you to do what you’re after – the trick is just figuring out which parameter it is you need to change But you should be able to see them when you run “virtualmin get-template” with your template id.
Thanks for the quick reply! After making this post I was heading in the right direction only couldn’t find out what the name was of the setting I wanted to change with the “virtualmin modify-template” command. The “get-template” tip helped me find it.
So to change from username.domain style to username@domain style in the Default Template, use the following command:
I found the remaining setting. It’s located in /etc/webmin/virtual-server/config, the setting name is “longname”…I only can’t find a way to change it via command-line…
UPDATE:
Well yeah…didn’t find a solution, but an “okay” workaround
I just edited my post, I think you missed the “update”. Issue solved with a workaound, but it would be great if Jamie could make this available as a CLI feature"