Sign inSign up

dungeondragon/postfix

By dungeondragon

•Updated over 6 years ago

Basic Postfix image on Debian buster-slim

Image
0

310

dungeondragon/postfix repository overview

⁠Postfix mail server - virtual host

Run a Postfix mail server with one or multiple domains. This Postfix image is configured to work as a virtual mailbox wich means that you don't have to map users to any users of the host machine. Any users are simply added to the configuration file vmailbox.

⁠Download

docker pull dungeondragon/postfix

⁠Run

docker run --name postfix \
  -p 25:25 \
  -p 587:587 \
  -e DOMAINS='domain.com, anotherdomain.org' \
  -e HOST='mx.domain.com' \
  -v /absolute/path/to/vmailbox:/etc/postfix/vmailbox \
  dungeondragon/postfix

You have to change /absolute/path/to with your own path to the file.

⁠Example file of vmailbox

[email protected]    example.com/info
[email protected]   example.com/sales/
# Comment out the entry below to implement a catch-all.
# @example.com      example.com/catchall
...virtual mailboxes for more domains...

The example file is from Postfix's own readme file that can be found here: http://www.postfix.org/VIRTUAL_README.html⁠

⁠Example of an enviroment file: .env

#Domains you wish to recieve emails for. One domain or a comma seperated list.
DOMAINS=mydomain.com, myotherdomain.cc
#FQDN of the hosting server. This should correspond to the mx record of your domains.
HOST=mymailhost.com

Tag summary

Content type

Image

Digest

Size

55.5 MB

Last updated

over 6 years ago

docker pull dungeondragon/postfix