~dricottone/container-images

ref: e61b929e86a9f7fb86ddc619e5d2a25ced8d3d28 container-images/postfix/entrypoint.sh -rw-r--r-- 581 bytes
e61b929eDominic Ricottone Okay now really things are updated a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
newaliases
postmap /etc/postfix/transport
postmap /etc/postfix/generic
postmap /etc/postfix/recipient_canonical
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/^myhostname.*/myhostname = ${HOSTNAME}.${DOMAIN}/"
sed -i /etc/postfix/main.cf -e "s/^mydestination.*/mydestination = \$mydomain, \$myhostname, ${DESTINATION}, localhost, localhost.localdomain/"
sed -i /etc/postfix/main.cf -e "s/^relay_domains.*/relay_domains = \$mydomain, \$myhostname, ${DESTINATION}/"

exec "$@"