Install/iRedAPD/MySQL
From iRedMail
(Difference between revisions)
(Created page with '= Summary & Feature List = * iRedAPD is designed to work in conjunction with Postfix as an Access Policy Delegation daemon, with plugin support. * Currently, it works with both O…') |
(→Requirements) |
||
| Line 12: | Line 12: | ||
* DBUtils, is a suite of tools providing solid, persistent and pooled connections to a database. | * DBUtils, is a suite of tools providing solid, persistent and pooled connections to a database. | ||
* iRedMail: All iRedMail versions should work as expected. | * iRedMail: All iRedMail versions should work as expected. | ||
| + | |||
| + | = Install required python modules = | ||
| + | |||
| + | * on RHEL/CentOS: | ||
| + | <pre> | ||
| + | # yum install MySQL-python python-setuptools | ||
| + | # easy_install web.py DBUtils | ||
| + | </pre> | ||
| + | |||
| + | * on Debian/Ubuntu: | ||
| + | * on FreeBSD: | ||
| + | |||
| + | |||
| + | = Download and configure iRedAPD = | ||
| + | * Download iRedAPD from [http://www.iredmail.org/download.html#iredapd download page]. | ||
| + | * Copy iRedAPD to /opt/, set correct file permissions, and create symbol link. | ||
| + | <pre> | ||
| + | # tar xjf iRedAPD-x.y.z.tar.bz2 -C /opt/ | ||
| + | # ln -s /opt/iRedAPD-x.y.z /opt/iredapd | ||
| + | # chmod +x /opt/iredapd/src/iredapd.py | ||
| + | </pre> | ||
| + | |||
| + | * Copy necessary RC script to /etc/init.d/ (Linux) or /usr/local/etc/rc.d/ (FreeBSD): | ||
| + | <pre> | ||
| + | # cp /opt/iredapd/rc_scripts/iredapd /etc/init.d/iredapd | ||
| + | # chmod +x /etc/init.d/iredapd | ||
| + | </pre> | ||
| + | |||
| + | * Copy sample setting file: | ||
| + | <pre> | ||
| + | # cp /opt/iredapd/etc/iredapd.ini.sample /opt/iredapd/etc/iredapd.ini | ||
| + | </pre> | ||
| + | |||
| + | * Open /opt/iredapd/etc/iredapd.ini and set correct values: | ||
| + | <pre> | ||
| + | [general] | ||
| + | # Listen address and port. | ||
| + | listen_addr = 127.0.0.1 | ||
| + | listen_port = 7777 | ||
| + | |||
| + | # Background/daemon mode: yes, no. | ||
| + | run_as_daemon = yes | ||
| + | |||
| + | # Path to pid file. | ||
| + | pid_file = /var/run/iredapd.pid | ||
| + | |||
| + | # Log type: file. | ||
| + | log_type = file | ||
| + | log_file = /var/log/iredapd.log | ||
| + | |||
| + | # Log level: info, warning, error, debug. | ||
| + | # 'info' is recommended for product use. | ||
| + | log_level = info | ||
| + | </pre> | ||
| + | |||
| + | * Start iRedAPD now. | ||
| + | <pre> | ||
| + | # /etc/init.d/iredapd start | ||
| + | </pre> | ||
| + | |||
| + | * Make iRedAPD start when boot your server. | ||
| + | ** on RHEL/CentOS:<pre># chkconfig --level 345 iredapd on</pre> | ||
| + | ** on Debian/Ubuntu:<pre>$ update-rc.d iredapd defaults</pre> | ||
| + | ** on FreeBSD: | ||
| + | <pre> | ||
| + | # ---- Edit /etc/rc.conf, append below line ---- | ||
| + | iredapd_enable='YES' | ||
| + | </pre> | ||
Revision as of 05:59, 12 March 2010
Contents |
Summary & Feature List
- iRedAPD is designed to work in conjunction with Postfix as an Access Policy Delegation daemon, with plugin support.
- Currently, it works with both OpenLDAP and MySQL backend.
- Available plugins:
- ldap_maillist_access_policy: Used to restrict mail list access with OpenLDAP backend.
- sql_alias_access_policy: Used to restrict alias access with MySQL backend.
Requirements
- Python >= 2.4, core programming language.
- Python-MySQLdb, is the Python DB API-2.0 interface.
- web.py >= 0.3.0, a web framework for python that is as simple as it is powerful.
- DBUtils, is a suite of tools providing solid, persistent and pooled connections to a database.
- iRedMail: All iRedMail versions should work as expected.
Install required python modules
- on RHEL/CentOS:
# yum install MySQL-python python-setuptools # easy_install web.py DBUtils
- on Debian/Ubuntu:
- on FreeBSD:
Download and configure iRedAPD
- Download iRedAPD from download page.
- Copy iRedAPD to /opt/, set correct file permissions, and create symbol link.
# tar xjf iRedAPD-x.y.z.tar.bz2 -C /opt/ # ln -s /opt/iRedAPD-x.y.z /opt/iredapd # chmod +x /opt/iredapd/src/iredapd.py
- Copy necessary RC script to /etc/init.d/ (Linux) or /usr/local/etc/rc.d/ (FreeBSD):
# cp /opt/iredapd/rc_scripts/iredapd /etc/init.d/iredapd # chmod +x /etc/init.d/iredapd
- Copy sample setting file:
# cp /opt/iredapd/etc/iredapd.ini.sample /opt/iredapd/etc/iredapd.ini
- Open /opt/iredapd/etc/iredapd.ini and set correct values:
[general] # Listen address and port. listen_addr = 127.0.0.1 listen_port = 7777 # Background/daemon mode: yes, no. run_as_daemon = yes # Path to pid file. pid_file = /var/run/iredapd.pid # Log type: file. log_type = file log_file = /var/log/iredapd.log # Log level: info, warning, error, debug. # 'info' is recommended for product use. log_level = info
- Start iRedAPD now.
# /etc/init.d/iredapd start
- Make iRedAPD start when boot your server.
- on RHEL/CentOS:
# chkconfig --level 345 iredapd on
- on Debian/Ubuntu:
$ update-rc.d iredapd defaults
- on FreeBSD:
- on RHEL/CentOS:
# ---- Edit /etc/rc.conf, append below line ---- iredapd_enable='YES'
