Docker container for Postfix SMTP relay server.
docker run -d \
-p 25:25 \
timjdfletcher/postfixMount custom Postfix configuration files:
docker run -d \
-p 25:25 \
-v /path/to/main.cf:/etc/postfix/main.cf:ro \
-v /path/to/master.cf:/etc/postfix/master.cf:ro \
timjdfletcher/postfixExample main.cf for a simple relay:
myhostname = mail.example.com
mydomain = example.com
myorigin = $mydomain
inet_interfaces = all
mydestination =
relayhost = [smtp.upstream.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_security_level = encrypt| Port | Protocol | Purpose |
|---|---|---|
| 25 | TCP | SMTP |
./run build./run testRuns rspec tests (requires Ruby and Bundler).