rename-domain

Change the domain name, home directory or username of a virtual server This command is typically used to rename an existing server, selected with the --domain flag, and changed to the name set with the --new-domain option. By default, the administration username, home directory and prefix for mailboxes will remaining unchanged. You can have these selected automatically based on the new domain name with the --auto-user, --auto-home and --auto-prefix flags. Alternately, you can set them directly with the --new-user, --new-home and --new-prefix flags followed by the settings you want.

Change the domain name, home directory or username of a virtual server#

This command is typically used to rename an existing server, selected with the --domain flag, and changed to the name set with the --new-domain option.

By default, the administration username, home directory and prefix for mailboxes will remaining unchanged. You can have these selected automatically based on the new domain name with the --auto-user, --auto-home and --auto-prefix flags. Alternately, you can set them directly with the --new-user, --new-home and --new-prefix flags followed by the settings you want.

This command can also be used to change the home directory or username for a domain without even changing the domain name, just set the --new-home or --new-user flags without --new-domain.

Command line help#

virtualmin rename-domain --domain domain.name
 [--new-domain name]
 [--new-user login | --auto-user]
 [--new-home directory | --auto-home]
 [--new-prefix string | --auto-prefix]

Source: https://www.virtualmin.com/docs/development/api-programs/rename-domain/

  • virtualmin, domain, mail, mailbox, user, log, command line, fix, rename
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Pre and Post Domain Modification Scripts

Virtualmin allows the use of custom scripts (Shell, Perl, Python and etc.) to automate tasks...

OS Support

Virtualmin runs on top of Webmin. Webmin works on almost every UNIX-like OS, so with some manual...

Professional Features

Virtualmin GPL is already an extremely powerful and flexible virtual hosting control panel, so...

How to Configure Secondary DNS

This guide provides administrators with a quick overview of setting up automatic DNS secondary...

How to Configure Cloudflare DNS

For users looking to integrate Cloudflare with Virtualmin Pro, the process is straightforward and...