modify all mail quota settings with a batch process

4 posts / 0 new
Last post
#1 Tue, 04/13/2010 - 05:41
rpereyra

modify all mail quota settings with a batch process

Hi all !

It's posible to modify all mail quota settings with a batch process?

I have all (+300) accounts with unlimited quota and I would like to set a lower value (100m).

Thanks in advance.

roberto

Tue, 04/13/2010 - 09:44
andreychek

There isn't one specific command that can do that.

You could, however, write up a script that takes advantage of the Virtualmin command line tools.

You could loop over a list of all the Virtual Servers by running the command "virtualmin list-domains".

And from there, you can list all the mail users in each domain with "virtualmin list-users".

You can modify the details for a given users account with "virtualmin modify-user".

If you do any scripting, you can tie all those commands together to form a tool that would change the quota for each of your mail users.

-Eric

Wed, 04/14/2010 - 05:57
rpereyra

Thanks Eric for your help.

I will try this way today.

roberto

Mon, 03/11/2019 - 02:04
rahnuma

Hi, It may be a very late response, but here is a simple script to bulk update User email quota or make other changes in bulk. from inside your shell login make necessary change to following command and execute it.

for user in virtualmin list-users --domain domain.com --email-only; do virtualmin modify-user --domain domain.com --quota 10000000 --user $user; done

virtualmin list-users --domain domain.com --email-only is enclosed in shell backquote

---Nadeem

Topic locked