Skip to content

Feat: Initial Postfix alpine image with DKIM and user authentication

Pierre-Louis TALBOT requested to merge feat/dovecot into main

Summary

This merge request introduces the initial version of the Postfix Docker image. It is designed to provide a secure and lightweight SMTP server with:

  • TLS and STARTTLS support
  • User authentication via SASL (Dovecot)
  • DKIM signing (OpenDKIM)

The image is compatible with both AMD64 and ARM architectures and aims to be simple to configure and extend.

Changes

  • Add a Dockerfile based on Alpine 3.21
  • Install and configure Postfix, Dovecot, and OpenDKIM
  • Provide example configuration files:
    • main.cf
    • dovecot.conf
    • opendkim.conf
  • Add an entrypoint script to initialize services
  • Expose SMTP port (25)
  • Revamp README.md with documentation:
    • Features
    • Supported tags
    • Quick reference

How to Test

  1. Build the image:
docker build -t postfix:local .
  1. Run the container:
docker run -d --name postfix -p 25:25 postfix:local
  1. Check logs to ensure Postfix, Dovecot, and OpenDKIM are running properly.

## Notes DKIM keys should be placed in /etc/opendkim/domainkeys/ inside the container.

Edited by Pierre-Louis TALBOT

Merge request reports