This repository contains Dockerfile of Haraka for Docker's automated build.
-
Install Docker.
-
Download automated build from public Docker Hub Registry:
docker pull renothing/haraka:tag
(alternatively, you can build an image from Dockerfile:
docker build -t="haraka:latest" github.com/renothing/docker-haraka.git
) -
default environments supported,you can change them before building or running.
the container start with port 587 with ssl enabled
TIMEZONE="Asia/Shanghai"
DATADIR=/data
PORT="port to listen on "
DOMAIN="yourdomain.com" #your mx record domain here
HEADER="Haraka Server"
TLS_KEY="your domain ssl key file"
TLS_CERT="your domain ssl cert file"
AUTOTLS=0
EMAIL="youremail@email.com"
TLSDOMAIN="tlsdomain.com tls2domain.com" #your connection hostdomain,split by black, support wildcard
note: please make sure your tlsdomain record correct before running when you enable autotls.
use volume to save your data
docker run -dit --name haraka --network host --env-file /data/haraka/env -v /data/haraka:/data renothing/harak
first user generated at /data/config/auth_flat_file.ini
, you can add more users append it.
for example:
[users]
tester@yourdomain.com=FXasad17salasl
user1@yourdomain.com=81assad.a822
user2@yourdomain.com=9sa1asda.F.s
...
the server DKIM signatures saved at /data/config/dkim/yourdomain.com
, please add its records in your own dns.
ref: