Tony Mack | 91b0ef9 | 2016-05-10 16:27:55 +0000 | [diff] [blame] | 1 | #!/bin/bash |
2 | |||||
3 | : ${MAIL_SERVER=$MAIL_PORT_25_TCP_ADDR} | ||||
4 | |||||
5 | |||||
6 | sed -i "s/relayhost =.*/relayhost = ${MAIL_SERVER}/" /etc/postfix/main.cf | ||||
7 | sed -i "s/myhostname =.*/myhostname = `hostname`/" /etc/postfix/main.cf | ||||
8 | |||||
9 | exec /usr/lib/postfix/master -d -c /etc/postfix |