Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Hostname

Hostname (-h) should be a subdomain of MAILNAME, usually.
So radiant.darksecond.nl could be the hostname and darksecond.nl the MAILNAME.

Certificates

Make sure the certificate has the intermediate CA's attached. (you can cat them both together)
The filenames should be the FQDN, with dots replaced with dashes.
So radiant-darksecond-nl.pem for example.
The private key should be decrypted.
Mount the certificates as volume under /certs

Virtual aliases

Example virtual-aliases file:

# alias                actual
mail@darksecond.nl        darksecond@darksecond.nl
postmaster@darksecond.nl    darksecond@darksecond.nl

Virtual domains

Example virtual-domains file:

darksecond.nl    OK

Virtual users

Example virtual-users file:

# sender address        owner (SASL login name), comma seperated
darksecond@darksecond.nl    darksecond@darksecond.nl
mail@darksecond.nl        darksecond@darksecond.nl
nobody@darksecond.nl        nobody@darksecond.nl

Example

docker build .
docker run --name=postfix \
  --link dovecot:dovecot \
  --rm \
  -p 25:25 \
  -p 587:587 \
  -p 465:465 \
  -h radiant.darksecond.nl \
  -e MAILNAME=darksecond.nl \
  -v ~/mail/certs:/certs \
  -v ~/mail/virtual-aliases:/conf/virtual-aliases \
  -v ~/mailbox/virtual-domains:/conf/virtual-domains \
  -v ~/mailbox/virtual-users:/conf/virtual-users \
  <image_id>
Docker Pull Command
Owner
darksecond
Source Repository

Comments (0)