Git Product home page Git Product logo

mailadmin's Introduction

emailAdmin

About

This is a small collections of scripts to manage a simple email server based on Postfix, Dovecot and MySQL. For more information on how to setup this configuration, please read the tutorial written for DigitalOcean by Nestor de Haro, available here:

http://goo.gl/y0kY0k

Prerequisites

These scripts are compabible with Python 2.7.3. I don't know if they work on Python 3, but you can try. :)

You need to install a python module called texttable. To install it just run:

sudo easy_install texttable

Usage

First you'll need to edit the configuration file config.ini according with your configuration. My configuration is as follows:

[database]
host = localhost
user = usermail
password = PASSWORD_HERE
name = servermail

[disk]
vhostdir = /var/mail/vhosts
uid = 5000
gid = 5000

For more information, please read the tutorial referred above.

Now you will be able to run the scripts as follows:

sudo ./addUser.py -e email -p password
sudo ./removeUser.py -e email
./changePassword.py -e email -p newpassword
./listUsers.py

sudo ./addDomain.py -d domain
sudo ./removeDomain.py -d domain
./listDomains.py

./addAlias.py -s source -d destination
./removeAlias.py -s source
./listAliases.py

Some scripts need root permissions in order to create or delete the mailboxes on disk.

mailadmin's People

Stargazers

Vladimir Bogdanov avatar Jackie Barker avatar  avatar benchea dan avatar Viste avatar  avatar Rich Pav avatar Brandon avatar  avatar Kim Thostrup avatar Everaldo Gomes avatar

Watchers

Kim Thostrup avatar Américo Dias 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.