Sign inSign up

renothing/haraka

By renothing

•Updated about 7 years ago

run haraka on docker

Image
0

648

renothing/haraka repository overview

⁠About this Repo


This repository contains Dockerfile of Haraka⁠ for Docker⁠'s automated build.

⁠Base Docker Image
⁠Installation
  1. Install Docker⁠.

  2. 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)

  3. 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="[email protected]"
    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.

⁠Usage

use volume to save your data

docker run -dit --name haraka --network host --env-file /data/haraka/env -v /data/haraka:/data renothing/harak
⁠users and auth

first user generated at /data/config/auth_flat_file.ini, you can add more users append it. for example:

[users]
[email protected]=FXasad17salasl
[email protected]=81assad.a822
[email protected]=9sa1asda.F.s
...
⁠TLS and DKIM signatures

the server DKIM signatures saved at /data/config/dkim/yourdomain.com, please add its records in your own dns. ref:

Tag summary

Content type

Image

Digest

Size

70.4 MB

Last updated

about 7 years ago

docker pull renothing/haraka