Account Plans - Save and Apply Issue

Hi guys,

I am trying to give an Account Plan access to the Spam Filtering and Virus Filtering that I recently enabled. I can set it in the settings but when I click Save and Apply and open an account that it should have been applied to, they do not appear to be updated... I also verified that the "Apply limits from new plan if changed" is checked. Please see attached.

Thank you,

~Jeremy

Status: 
Closed (fixed)

Comments

The "Allowed virtual server features" of a plan only dictates which features a virtual server owner is allowed to turn on when they create a new (child) server; it does not directly turn on or off features in existing virtual servers.

Is there a way to enable features for an account plan for all virtual servers who are associated with the plan?? I am the root user.

~Jeremy

So plans only control what a domain owner can do, not what features they actually have enabled.

To enable a feature for multiple domains, you can select them on the "List Virtual Servers" page, then click the "Update Selected" button, choose the feature in the "Enabled feature changes" section, then click "Update Selected".

Alternately, you can use the Virtualmin command-line API, with a command like :

for dom in \`virtualmin list-domains --plan "Your plan" --name-only\`; do
  virtualmin enable-feature --domain $dom --dns
done

This would enable a DNS zone for all virtual servers on the plan called "Your plan".

Thank you Jamie!

Is there a Virtualmin cookbook documenting these command line commands and the names of the features etc available for purchase ?

What is the -- name for enabling spam filtering and virus filtering?

Thanks!!!

~Jeremy

Hi Jamie,

I ended up using the following to accomplish what I needed:

virtualmin enable-feature --all-domains --virus --spam

This can be marked as fixed.

Thx,

~Jeremy

Cool .. that will also work.

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