Dockerized postfix
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

start.sh 340B

123456789101112131415161718
  1. #!/bin/bash
  2. IMAGE=postfix
  3. docker build -t $IMAGE .
  4. docker rm -f $IMAGE
  5. docker run -d \
  6. -h $(hostname -f) \
  7. --name $IMAGE \
  8. -p "25:25/tcp" \
  9. -p "587:587/tcp" \
  10. -v /etc/localtime:/etc/localtime:ro \
  11. -v $PWD/postfix:/etc/postfix:ro \
  12. $IMAGE
  13. # -v $PWD/letsencrypt:/etc/letsencrypt:ro \
  14. # --restart=always \
  15. # --net bridge \