44 lines
1.3 KiB
Markdown
44 lines
1.3 KiB
Markdown
# IREDDOCKER
|
|
|
|
This is the iRedMail docker image with included external ldap authentication and ability of usage an external mysql database.
|
|
|
|
## Install
|
|
|
|
Clone git repository to local folder
|
|
|
|
```git clone https://github.com/temasky/ireddocker.git```
|
|
|
|
## Configure
|
|
|
|
add FQDN name in ```docker-compose.yml``` file
|
|
|
|
create file ```ireddocker/iredmail-env.conf```, like this:
|
|
```
|
|
cat <<EOF > ireddocker/iredmail-env.conf
|
|
LDAP_EXTERNAL_USE=YES
|
|
LDAP_EXTERNAL_SERVER=#ldap server address
|
|
LDAP_EXTERNAL_BINDPW=#bind password for ldap
|
|
LDAP_EXTERNAL_BINDUSER=#bind user for ldap
|
|
LDAP_EXTERNAL_BASE=#base dn for mail users
|
|
FIRST_DOMAIN=#mail domain name
|
|
MYSQLEXIST=#usage existing databse
|
|
MYSQL_SERVER_ADDRESS=#server address of mysql external database
|
|
MYSQL_ROOT_USER=#name for admin(root) user of external database
|
|
MYSQL_ROOT_PASSWD=#passwd for admin(root) user of external database
|
|
CUSTOM_CERT_USE:=NO#usage of external cert file. If Yes - place certfile in cert_dir directory, in global catalog
|
|
CUSTOM_CERT_KEYFILE:=privkey.pem
|
|
CUSTOM_CERT_CERTFILE:=fullchain.pem
|
|
EOF
|
|
```
|
|
|
|
Create directory for mail and for certificates (default is ```mail_dir``` and ```cert_dir```. For other location this filder need to be change in ```docker-compose.yml``` file )
|
|
|
|
```
|
|
mkdir mail_dir
|
|
mkdir cert_dir
|
|
```
|
|
|
|
## RUN
|
|
|
|
```docker-compose up -d```
|