Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-06-2010, 04:21 AM
Trained Alumni
 
Posts: 3
Talking [SOLVED] Increase mailbox size -Solved

Hi all,
i need help to write a script that allow me to increase the mailbox size to a certain number of client in my zimbra server. Actually i have 1300 client and 250 of them needs to have her own quota increased. I have a report in a csv file with all of this users, but i'm not able to write a batch script that can solve this problem. Thank you for your attention
Mario

Last edited by marisalv; 07-06-2010 at 06:43 AM..
Reply With Quote
  #2 (permalink)  
Old 07-06-2010, 05:14 AM
Advanced Member
 
Posts: 213
Default

I'm pretty bad at such stuff, but if you have the command to increase the mailbox size, a simple loop in a bash shell script would likely be fine. Put your email addresses in a file, 1 line per address/account (this example uses /tmp/users/accts), and then something like this:


Code:
#!/bin/bash
# begin loop to add the requirements to each acct in this file

for i in `cat /tmp/users_accts`
do
                user_name=`echo $i | grep -o '^[^@]\+'`
                echo "email address is $i and username is $user_name"
                echo "increasing mailbox quota for this account...."
                zmprov ma $i ZimbraMailQuota PUT_YOUR_NUMBER_HERE
                echo "Done, moving to the next acct"
                echo ""
done

Last edited by gnyce; 07-06-2010 at 05:14 AM.. Reason: formatting
Reply With Quote
  #3 (permalink)  
Old 07-06-2010, 06:23 AM
Trained Alumni
 
Posts: 3
Default It Works!

thank you, it works perfectly.
Reply With Quote
  #4 (permalink)  
Old 07-06-2010, 06:37 AM
Advanced Member
 
Posts: 213
Default

welcome... please flag this as "solved"
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.