Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rvojcik/iredmail-cli

iRedMail CLI (MySQL Only), Command Line interface to iRedMail Open Source Email server solution
https://github.com/rvojcik/iredmail-cli

iredmail iredmail-cli

Last synced: 3 months ago
JSON representation

iRedMail CLI (MySQL Only), Command Line interface to iRedMail Open Source Email server solution

Awesome Lists containing this project

README

        

iredmail-cli
============

UPDATE: This project is abandoned. I have no longeraccess to iredadmin pro version and don't use iredmail in any of my installations. So no more places to test and develop this project. Sorry.

iRedMail CLI (MySQL Only)
Command Line interface to iRedMail Open Source Email server solution

This is simple CLI interface to some functions of iRedMail. Many admins like CLI tools more like web management.

It's good to have ability to do some basic thinks via command line. This tool in fact use configuration and many other functions from original Web interface. So original iredadmin is one of requirements

#Currently supported features
* Add domain
* Add domain as backup MX
* Add new mailbox
* Add/Update aliases
* Search in domains and mailbox
* Delete single account

#TODO
* Delete domain with all accounts

#Requirements
* python 2.7
* python-mysqldb
* python-pip
* python-prettytable
* iRedMail Web admin (iredadmin)

#Installation

There are two versions of cli script. Pro and free.
Use correct version along with your iredadmin.
Pro version for iredadmin pro and free version for iredadmin free version.

Copy script to your sbin directory (for example /usr/local/sbin)

sudo cp email-manage.py /usr/local/sbin/

Install python-mysqldb and python-pip to your system.

In debian/ubuntu run

sudo apt-get install python-mysqldb python-pip

You will need new python-prettytable, so use pip radher then system packages

sudo pip install prettytable

#Configuration

There is only one thing you need set up. Open email-manage.py and find rows:

# iRedAdmin location
iredadmin_install_path = '/usr/share/apache2/iredadmin'

This variables must point to directory where your iRedAdmin web interface is installed. This is default for Debian/Ubuntu.

#Contact

Robert Vojcik