postfwd docker support

To run postfwd in a docker container you will need use at least version 1.36 of postfwd. You can use one of the pre-built images "postfwd/postfwd:stable" or "postfwd/postfwd:testing" from DockerHub or download the postfwd distibution and build the image by yourself.


Quicknav


Using a pre-built image

a.) docker

b.) docker-compose


Building your own image

Get the postfwd docker files

The files "Dockerfile" and "docker-compose.yml" which were used to build the images at DockerHub can be found within the "docker"-subfolder of the postfwd distribution. You can find it at:

a.) docker

b.) docker-compose


Configure the container

For reasonable operation you should configure postfwd. First you should create your own ruleset. Please look at the manpage or postfwd.org for more information on this topic. Save your ruleset to a file on the docker host - it will be further refered as: Now specify the program options via the container environment. The following settings are available:

a.) docker

b.) docker-compose