Postfix SMTP backup relay server as Docker image
Go to file
2024-04-27 07:14:53 +02:00
.github/workflows Updates all GitHub-based Actions to their latest versions 2023-12-20 09:15:49 +01:00
config Updates README.md and adds example configuration files 2021-12-29 15:14:39 +01:00
.gitignore Updates README.md and adds example configuration files 2021-12-29 15:14:39 +01:00
build-man.sh Adds script + CI for building ARM versions of the image 2022-01-16 18:35:40 +01:00
docker-compose.yml.example Updates README.md and adds example configuration files 2021-12-29 15:14:39 +01:00
Dockerfile Updates base image to Debian Bookworm 2024-04-27 06:46:43 +02:00
LICENSE Adds Dockerfile, LICSENSE and basic README.md 2021-12-29 14:59:28 +01:00
README.md Changes CI config to GitHub Actions 2023-01-29 12:42:58 +01:00

Docker Postfix

Build Docker images

Unofficial Postfix Dockerfile for backup MX (relay host) purposes Prebuild images can be found at this Dockerhub repository.

Quickstart

After installing Docker, just run the following steps:

  • Copy docker-compose.yml.example to docker-compose.yml.
  • Create your config files: ./config/main.cf, ./config/relay_recipients, ./config/dh_2048.pem, ./config/mailname, and $ touch ./data/postfix.log
    • You can use the provided example files to get started.
  • Update the file docker-compose.yml and set your values.
  • Run the following command to start your Postfix instance:
$ docker-compose up -d

The compose file also starts a container for publishing metrics using this Docker image.

Dockerfile

The Dockerfile can be found at the Github repository.

What gets installed in this image?

The following packages are installed in this Docker image:

  • Some utility packages like build essentials etc.
  • Postfix

Issues & Contribution

If you find any problems, bugs or missing packages, feel free to open an issue on Github.