Giter Site home page Giter Site logo

vimbadmin-perl's Introduction

vimbadmin-perl

Scripts to automate some actions with ViMbAdmin:

- create mailboxes;
- create aliases;
- delete aliases;
- change passwords.

Perl dependencies:

- DBI.

External utilities dependencies:

- doveadm (for creating passwords with selected password scheme).

They do what is expected, except adding a record to log table. Adjust database settings in scripts (plus mail paths in "create mailboxes" script). Read input format in the beginning of script (field delimiter is tabulation).

Usage:

./script file_with_data
echo "data" | ./script

Additional scripts:

- find wrong aliases;
- update mailbox size.

find_wrong_aliases.pl finds wrong aliases which are pointing to not existent mailbox or alias.

Usage:

./find_wrong_aliases.pl [-f]

Options:

-f Prints info about all aliases instead of only wrong ones.

update_mailbox_size.pl updates all mailboxes size. If possible, it uses 'maildirsize' file instead of just using 'du'. You may choose what type of 'du' to use: Perl (requires Filesys::DiskUsage module) or system (see script).

Usage:

./update_mailbox_size.pl

vimbadmin-perl's People

Stargazers

Thijs Eilander avatar Crys avatar Grzegorz avatar Manuel Dalla Lana avatar

Watchers

James Cloos avatar Thijs Eilander avatar Grzegorz avatar

Forkers

cdg46 gunawanw9

vimbadmin-perl's Issues

What does find_wrong_alias.pl do?

I don't understand under which conditions find_wrong_alias.pl will ever mark an alias as "WRONG". As I see it the script iterates over all %aliases and then over each key in 'gotos' and checks whether the goto is either in @mailboxes or @domains or in the %aliases. The first and the last check operate on actual data, but everything else should just be an "EXT_ALIAS".

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.