Skip to content

postfix with alpine, intends to build the simplest / smallest postfix docker image.

License

Notifications You must be signed in to change notification settings

chhsiao1981/docker-postfix

Repository files navigation

docker-postfix

postfix with alpine-linux as docker-image

With the evolution of this repo, we will add tls / sasl / stdout-log in the end.

docker-compose.yaml

docker-compose.yaml is an example for docker-compose deployment.

Steps to deploy docker-compose:

  1. docker-compose --env-file docker_compose.env -f docker-compose.yaml up -d

k8s.yaml

k8s.yaml is an example for k8s deployment.

Difference with the default settings:

  1. log to stdout
  2. with smtps
  3. smtpd_relay_restrictions with only permit_mynetworks
  4. smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
  5. postfix is expected to run in foreground.

Steps to deploy to k8s:

  1. kubectl create namespace postfix
  2. kubectl create secret tls postfix-tls --key [key-file] --cert [cert-file] --namespace postfix
  3. modify the followings in k8s.yaml
    • mynetworks
    • myhostname
    • mydomain
  4. kubectl apply -f k8s.yaml

About

postfix with alpine, intends to build the simplest / smallest postfix docker image.

Resources

License

Stars

Watchers

Forks

Packages

No packages published