Submitted by xtremeservices on Sun, 06/12/2011 - 17:27
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
Submitted by Locutus on Sun, 06/12/2011 - 17:53 Comment #1
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.
Submitted by JamieCameron on Sun, 06/12/2011 - 20:26 Comment #2
Submitted by xtremeservices on Sun, 06/12/2011 - 21:36 Comment #3
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
Submitted by JamieCameron on Sun, 06/12/2011 - 22:12 Comment #4
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".
Submitted by JamieCameron on Sun, 06/12/2011 - 22:14 Comment #5
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".
Submitted by xtremeservices on Sun, 06/12/2011 - 22:24 Comment #6
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
Submitted by JamieCameron on Sun, 06/12/2011 - 22:29 Comment #7
You can see all the commands at : http://www.virtualmin.com/documentation/developer/cli
The feature names for spam and virus filtering are
--spam
and--virus
Submitted by xtremeservices on Mon, 06/13/2011 - 13:53 Comment #8
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
Submitted by JamieCameron on Mon, 06/13/2011 - 15:12 Comment #9
Cool .. that will also work.
Submitted by Issues on Tue, 06/28/2011 - 15:49 Comment #10
Automatically closed -- issue fixed for 2 weeks with no activity.