Sign inSign up

levigroker/postfix

By levigroker

Updated almost 11 years ago

postfix server with SMTP authentication (sasldb) and optional TLS and OpenDKIM support.

Image
0

2.2K

levigroker/postfix repository overview

docker-postfix

github repo

Postfix server with SMTP authentication (sasldb) and optional TLS and OpenDKIM support.
Requirements
Installation
  1. Build image

     $ sudo docker pull levigroker/postfix
    
Usage
  1. Create postfix container with smtp authentication

     $ docker run -p 25:25 \
     		-e maildomain=mail.example.com -e smtp_user=user:pwd \
     		--name postfix -d levigroker/postfix
     # Set multiple user credentials: -e smtp_user=user1:pwd1,user2:pwd2,...,userN:pwdN
    
  2. Enable OpenDKIM: save your domain key .private in /path/to/domainkeys

     $ docker run -p 25:25 \
     		-e maildomain=mail.example.com -e smtp_user=user:pwd \
     		-v /path/to/domainkeys:/etc/opendkim/domainkeys \
     		--name postfix -d levigroker/postfix
    
  3. Enable TLS(587): save your SSL certificates .key and .crt to /path/to/certs

     $ docker run -p 587:587 \
     		-e maildomain=mail.example.com -e smtp_user=user:pwd \
     		-v /path/to/certs:/etc/postfix/certs \
     		--name postfix -d levigroker/postfix
    
Note
  • Login credentials should be set to ([email protected], password) in SMTP client
  • You can assign the port of MTA on the host machine to one other than 25 (postfix how-to)
  • Read the reference below to find out how to generate domain keys and add public key to the domain's DNS records
Reference
Disclaimer and Licence
About

A professional iOS engineer by day, my name is Levi Brown. Authoring a blog grokin.gs, I am reachable via:

Twitter @levigroker
Email [email protected]

Your constructive comments and feedback are always welcome.

Tag summary

Content type

Image

Digest

Size

96.7 MB

Last updated

almost 11 years ago

docker pull levigroker/postfix