delete-alias

Delete a mail alias This program simply removes a single mail alias from a virtual server. It takes only two parameters, --domain to specify the server domain name, and --from to specify the part of the alias before the @ sign. Be careful using it, as it does not prompt for confirmation before deleting. To delete the catch-all alias for a domain, use the option --from "*". No program exists for updating existing aliases, but the same thing can be achieved by using the delete-alias and create-alias commands to remove and re-create an alias with new settings.

Delete a mail alias#

This program simply removes a single mail alias from a virtual server. It takes only two parameters, --domain to specify the server domain name, and --from to specify the part of the alias before the @ sign. Be careful using it, as it does not prompt for confirmation before deleting. To delete the catch-all alias for a domain, use the option --from "*".

No program exists for updating existing aliases, but the same thing can be achieved by using the delete-alias and create-alias commands to remove and re-create an alias with new settings.

Command line help#

virtualmin delete-alias --domain domain.name
 --from mailbox|"*"

Source: https://www.virtualmin.com/docs/development/api-programs/delete-alias/

  • virtualmin, domain, alias, mail, mailbox, command line, delete
  • 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...