Giter VIP home page Giter VIP logo

zimbra-scripts's Introduction

zimbra-scripts

zimbra-size.sh

Report zimbra mailbox size per folder for a specific user.

Sample output

[zimbra@zimbra ~]$ /tmp/zimbra-size.sh [email protected]
[email protected]'s max mailbox size = 20480 MB, current mailbox size = 343.02 MB.

size (MB)  msgcount     unread folder
--------- --------- ---------- ----------------------------
        0         0          0 /Chats
        0         0          0 /Drafts
       12       221        221 /Inbox
       15      1001       1001 /Inbox/Tickets
      310      7158       7158 /Inbox/Syslog
        3        78         78 /Inbox/Wiki
        0         0          0 /Junk
        3        21          0 /Sent
...

quota-report.sh

Reports top 50 mailboxes by disk usage (quota).

Edit script to fix sender and recepient emails.

Execute script via cronjob (user zimbra), daily at 23:30

30 23 * * * /path/to/quota-report.sh

Sample output

From: [email protected]
To: [email protected]
Subject: Daily quota report for 2014-02-29

top 50 mailboxes by disk usage (quota)
--------------------------------------
5864 of 20480 MB [email protected]
4310 of 20480 MB [email protected]
3504 of 20480 MB [email protected]
...

Notes

Tested with Zimbra 8.0.x.

http://stsimb.irc.gr/2014/02/08/zimbra-mailbox-size-per-folder/

compact-index.sh

Compact indexes if they have more than 50000 deleted documents. Triggered by https://bugzilla.zimbra.com/show_bug.cgi?id=76414

Execute script via cronjob (user zimbra), weekly

00 18 * * sat /path/to/compact-index.sh

zimbra-quota.sh

Change Zimbra Mailbox Quota for a mailbox from command line. Interactive usage if no parameters given.

zimbra-scripts's People

Contributors

morganllj avatar stsimb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.