Creates a Docker container with an installation of the
postfix MTA. Additionally it has an IMAP
server (dovecot) for accessing the archvies
of sent email. All email is BCC'd to the mailarchive account.
Pull dhsncats/postfix from the Docker repository:
docker pull dhsncats/postfix
Or build dhsncats/postfix from source:
git clone https://github.com/cisagov/postfix-docker.git
cd postfix-docker
docker-compose build --build-arg VERSION=0.0.1
A sample docker composition is included in this repository.
To build and start the container use the command: docker-compose up
This container exposes the following ports:
smtpsubmissionimapsThe sample docker composition publishes the exposed ports at 1025, 1587, and 1993.
Two environment variables are used to generate the configurations at runtime:
PRIMARY_DOMAIN: the domain of the mail serverRELAY_IP: (optional) an IP address that is allowed to relay mail without authenticationfullchain.pem: public keyprivkey.pem: private keyusers.txt: account credentials to create at startupTwo optional volumes can be attached to this container to persist the mail spool directory, as well as the logging directory. (Note that the mail logs are available using the docker log command.)
/var/spool/postfix: mail queues/var/log: system logsWe welcome contributions! Please see here for details.
This project is in the worldwide public domain.
This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.
All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.
Content type
Image
Digest
Size
97.5 MB
Last updated
over 7 years ago
docker pull dhsncats/postfix