Make Virtualmin CLI command not to send e-mail notification

I wonder how can use "[--mail]" option of "virtualmin create-domain" command to prevent it from sending an e-mail notification. The following command:

virtualmin create-domain --domain db.$VIRTUALSERVER_DOM --parent $VIRTUALSERVER_DOM --default-features

always sends e-mail to virtualmin owner's e-mail address. Specifying a template with "[--template "name"]" option without "Email message?" option enabled doesn't help for some reason.

The following doesn't work:

virtualmin create-domain --mail no ... virtualmin create-domain --mail "no" ...

Thanks!

Status: 
Closed (fixed)

Comments

The actual flag you want is --no-email . The --mail flag controls if email is enabled for the domain or not.

That was exactly what I needed. Thanks!

Automatically closed -- issue fixed for 2 weeks with no activity.