aboutsummaryrefslogtreecommitdiff
path: root/docker/postfix/entrypoint.sh
diff options
context:
space:
mode:
authorQuentin <quentin@deuxfleurs.fr>2020-09-12 10:03:48 +0200
committerQuentin <quentin@deuxfleurs.fr>2020-09-12 10:03:48 +0200
commitc4a6cf1534b864d3941c839d4a4dca7e505bd828 (patch)
tree3e866768cf39ae947def5b205f74fddfb435725d /docker/postfix/entrypoint.sh
parent0550647b9348d1e36431400e0832b4340564c658 (diff)
downloadinfrastructure-c4a6cf1534b864d3941c839d4a4dca7e505bd828.tar.gz
infrastructure-c4a6cf1534b864d3941c839d4a4dca7e505bd828.zip
Rebase first step
Diffstat (limited to 'docker/postfix/entrypoint.sh')
-rwxr-xr-xdocker/postfix/entrypoint.sh30
1 files changed, 0 insertions, 30 deletions
diff --git a/docker/postfix/entrypoint.sh b/docker/postfix/entrypoint.sh
deleted file mode 100755
index c7ace3d..0000000
--- a/docker/postfix/entrypoint.sh
+++ /dev/null
@@ -1,30 +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
-
-exec "$@"