~dricottone/container-images

ref: bae25e4edce890d731319f5c0e0896db7bfde8ee container-images/postfix/entrypoint.sh -rw-r--r-- 333 bytes
bae25e4eDominic Ricottone Postfix redesign 1 year, 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
newaliases
postmap /etc/postfix/transport
postmap /etc/postfix/generic
postmap /etc/postfix/sasl/sasl_passwd

sed -i /etc/postfix/main.cf -e "s/^mydomain.*/mydomain = ${DOMAIN}/"
sed -i /etc/postfix/main.cf -e "s/^mydestination.*/mydestination = \$myhostname, ${DESTINATION}, localhost, localhost.localdomain/"

exec "$@"