postfix with smtp auth, submission port and spamassassin
409
Run postfix mail server with smtp auth, a submission port and spamassassin in a docker container.
Ubuntu Vivid/Trusty Mail Server images with :
built on the top of the formal Ubuntu images.
ClassCat Co.,Ltd. (This website is written in Japanese.)
$ sudo docker pull classcat/postfix
$ sudo docker run -d --name (container name) \
-p 2022:22 -p 25:25 -p 587:587 \
-v (dir on host):/var/mail \
-e ROOT_PASSWORD=(root password) \
-e SSH_PUBLIC_KEY="ssh-rsa xxx" \
-e HOSTNAME=(FQDN of host) -e DOMAINNAME=(domain name) \
-e USERS=(usr0:uid0:pwd0,usr1:uid1:pwd1) \
classcat/postfix
$ sudo docker run -d --name postfix \
-p 2022:22 -p 25:25 -p 587:587 \
-v /mail:/var/mail \
-e ROOT_PASSWORD=mypassword \
-e HOSTNAME=mailsvr.classcat.com -e DOMAINNAME=classcat.com \
-e USERS=foo:1001:passwd,foo2:1002:passwd2 \
classcat/postfix
$ sudo docker run -d --name postfix \
-p 2022:22 -p 25:25 -p 587:587 \
-v /mail:/var/mail \
-e ROOT_PASSWORD=mypassword \
-e HOSTNAME=mailsvr.classcat.com -e DOMAINNAME=classcat.com \
-e USERS=foo:1001:passwd,foo2:1002:passwd2 \
classcat/postfix:trusty
Content type
Image
Digest
sha256:806cbd1d2…
Size
148.4 MB
Last updated
almost 11 years ago
docker pull classcat/postfix