Results 1 to 4 of 4

Thread: [SOLVED] Increase mailbox size -Solved

  1. #1
    Join Date
    Jul 2010
    Location
    Italy
    Posts
    11
    Rep Power
    5

    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.

  2. #2
    Join Date
    Aug 2007
    Location
    outside Philadelphia
    Posts
    214
    Rep Power
    8

    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

  3. #3
    Join Date
    Jul 2010
    Location
    Italy
    Posts
    11
    Rep Power
    5

    Default It Works!

    thank you, it works perfectly.

  4. #4
    Join Date
    Aug 2007
    Location
    outside Philadelphia
    Posts
    214
    Rep Power
    8

    Default

    welcome... please flag this as "solved"

Similar Threads

  1. Export Mailbox Size to CSV
    By NOC IT Dept in forum Administrators
    Replies: 1
    Last Post: 11-15-2012, 09:56 AM
  2. Mailbox Size
    By mikelcu in forum Administrators
    Replies: 5
    Last Post: 11-17-2008, 12:47 AM
  3. Strange mailbox size
    By gcakici in forum Administrators
    Replies: 5
    Last Post: 04-08-2008, 08:13 AM
  4. can't you help me
    By iwan siahaan in forum Administrators
    Replies: 6
    Last Post: 12-17-2007, 05:53 PM
  5. Get mailbox size (for create quota warning SMTP script)
    By inigoml in forum Administrators
    Replies: 28
    Last Post: 08-21-2007, 06:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •