Skip to content

colibris-xyz/iredapd-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub release GitHub license

Docker image for iRedAPD

iRedAPD is a Postfix policy server for the iRedMail project. You will need a working iRedMail setup to be able to use this image.

Basic usage

$ docker run -d -p 127.0.0.1:7777:7777 --env-file .env ghcr.io/colibris-xyz/iredapd:latest

All the basic configuration is done by environment variables, see the list below.

Environment variables configuration

  • PLUGINS (default: None) - Comma separated list of plugins to activate

Mail accounts backend configuration

  • DATABASE_BACKEND (default: ldap) - The database backend to store mail accounts. Currently supported: ldap, mysql, pgsql.

OpenLDAP backend:

  • LDAP_URI (not set by default) - LDAP server URI, prefix with ldap://.
  • LDAP_BASE_DN (not set by default) - LDAP base DN. For example: o=domains,dc=iredmail,dc=org.
  • LDAP_BIND_DN (not set by default) - LDAP bind DN user. For example: cn=vmailadmin,dc=iredmail,dc=org.
  • LDAP_BIND_PASSWORD (not set by default) - LDAP bind DN password.
  • LDAP_ENABLE_TLS (default: False) - use startTLS.

SQL backends:

  • VMAIL_DB_HOST (not set by default) - Hostname of the vmail database server.
  • VMAIL_DB_NAME (default: vmail) - Name of the vmail database.
  • VMAIL_DB_USER (default: vmailadmin) - Username for the vmail database.
  • VMAIL_DB_PASSWORD (not set by default) - Password for the vmail database.
  • VMAIL_DB_PORT (default: 3306) - Port of the vmail database.

iRedAPD database configuration (for greylisting, throttle)

  • IREDAPD_DB_HOST (not set by default) - Hostname of the iRedAPD database server.
  • IREDAPD_DB_NAME (default: iredapd) - Name of the iRedAPD database.
  • IREDAPD_DB_USER (default: iredapd) - Username for the iRedAPD database.
  • IREDAPD_DB_PASSWORD (not set by default) - Password for the iRedAPD database.
  • IREDAPD_DB_PORT (default: 3306) - Port of the iRedAPD database.

Amavisd database configuration (for policy lookup and white/blacklists)

  • AMAVISD_DB_HOST (not set by default) - Hostname of the amavisd-new database server.
  • AMAVISD_DB_NAME (default: amavisd) - Name of the amavisd-new database.
  • AMAVISD_DB_USER (default: amavisd) - Username for the amavisd-new database.
  • AMAVISD_DB_PASSWORD (not set by default) - Password for the amavisd-new database.
  • AMAVISD_DB_PORT (default: 3306) - Port of the amavisd-new database.

Database initialization

Currently, there is no automatic database initialization / change management. If your database is not already initialized, you can retrieve the SQL files with the following command: docker cp <iredadmin_container_id>:/app/SQL /tmp, then use your favorite tool to initialize the database.