aboutsummaryrefslogtreecommitdiff
path: root/app/build/postfix
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2021-01-18 16:46:21 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2021-01-18 16:46:21 +0100
commit2c2efdc27684c1382a4949cff8fe06ee36c0f4c0 (patch)
treec01dd9454deeec6f43ce5ccd94d12138e6f9ea18 /app/build/postfix
parent6c8c861dd50aebf4a12232ecc1fab12c5f83bf03 (diff)
parentad6017eea058f7cb6fdf078783f992a4f45a3e15 (diff)
downloadinfrastructure-2c2efdc27684c1382a4949cff8fe06ee36c0f4c0.tar.gz
infrastructure-2c2efdc27684c1382a4949cff8fe06ee36c0f4c0.zip
Merge branch 'master' of git.deuxfleurs.fr:Deuxfleurs/infrastructure
Diffstat (limited to 'app/build/postfix')
-rw-r--r--app/build/postfix/Dockerfile13
-rw-r--r--app/build/postfix/README.md18
-rwxr-xr-xapp/build/postfix/entrypoint.sh31
3 files changed, 0 insertions, 62 deletions
diff --git a/app/build/postfix/Dockerfile b/app/build/postfix/Dockerfile
deleted file mode 100644
index 0c74fdc..0000000
--- a/app/build/postfix/Dockerfile
+++ /dev/null
@@ -1,13 +0,0 @@
-FROM amd64/debian:buster
-
-ARG VERSION
-
-RUN apt-get update && \
- apt-get install -y \
- postfix=$VERSION \
- postfix-ldap
-
-COPY entrypoint.sh /usr/local/bin/entrypoint
-
-ENTRYPOINT ["/usr/local/bin/entrypoint"]
-CMD ["postfix", "start-fg"]
diff --git a/app/build/postfix/README.md b/app/build/postfix/README.md
deleted file mode 100644
index ac44fc0..0000000
--- a/app/build/postfix/README.md
+++ /dev/null
@@ -1,18 +0,0 @@
-```
-sudo docker build -t superboum/amd64_postfix:v1 .
-```
-
-```
-sudo docker run -t -i \
- -e TLSINFO="/C=FR/ST=Bretagne/L=Rennes/O=Deuxfleurs/CN=smtp.deuxfleurs.fr" \
- -e MAILNAME="smtp.deuxfleurs.fr" \
- -p 25:25 \
- -p 465:465 \
- -p 587:587 \
- -v `pwd`/../../ansible/roles/container_conf/files/email/postfix-conf:/etc/postfix-conf \
- -v /mnt/glusterfs/email/postfix-ssl/private:/etc/ssl/private \
- -v /mnt/glusterfs/email/postfix-ssl/certs:/etc/ssl/certs \
- superboum/amd64_postfix:v1 \
- bash
-```
-
diff --git a/app/build/postfix/entrypoint.sh b/app/build/postfix/entrypoint.sh
deleted file mode 100755
index fcf1a66..0000000
--- a/app/build/postfix/entrypoint.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/bash
-
-if [[ ! -f /etc/ssl/certs/postfix.crt || ! -f /etc/ssl/private/postfix.key ]]; then
- cd /root
- openssl req \
- -new \
- -newkey rsa:4096 \
- -days 3650 \
- -nodes \
- -x509 \
- -subj ${TLSINFO} \
- -keyout postfix.key \
- -out postfix.crt
-
- mkdir -p /etc/ssl/{certs,private}/
-
- cp postfix.crt /etc/ssl/certs/postfix.crt
- cp postfix.key /etc/ssl/private/postfix.key
- chmod 400 /etc/ssl/certs/postfix.crt
- chmod 400 /etc/ssl/private/postfix.key
-fi
-
-# A way to map files inside the postfix folder :s
-for file in $(ls /etc/postfix-conf); do
- cp /etc/postfix-conf/${file} /etc/postfix/${file}
-done
-
-echo ${MAILNAME} > /etc/mailname
-postmap /etc/postfix/transport
-
-exec "$@"