mir07 / wblistadm

administrate wblist in iRedMail

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wblistadm

A command line tool used to manage white/blacklists in iRedMail server.

Requirements

Below are required Python modules, if you have a working iRedMail server, they are already installed by iRedMail.

  • psycopg2: required by PostgreSQL backend.
  • mysqldb: required by both MySQL and OpenLDAP backend.
  • ldap: required by OpenLDAP backend.
  • webpy: a simple web framework. http://webpy.org/

How to use

Copy iRedAdmin config file settings.py to this directory, then run:

# python wblistadm.py [option]

Available arguments

-b | --blacklist sender
    Blacklist specified sender. Multiple senders must be separated by a space
    and the entire list must be enclosed in " or '.
-d | --delete
    This means remove the blacklist or whitelist.
-h | --help
    Show this help
-r | --recipient
    Recipient can be global, domain, or user.
    If recipient is not listed recipient will be global.
-s | --show
    If recipient is listed only list for this recipient.
    If neither blacklist nor whitelist is present show all.
-w | --whitelist sender
    Whitelist specified sender. Multiple senders must be separated by a space
    and the entire list must be enclosed in " or '.

blacklist and whitelist option is mutual exclusive.
Unless option delete or list is present the implied action is add.

About

administrate wblist in iRedMail

License:GNU General Public License v3.0


Languages

Language:Python 100.0%