blob: 29bf50bff8c79745e04dd996bd625fab88ff2376 [file] [log] [blame]
Tony Mack91b0ef92016-05-10 16:27:55 +00001#!/bin/bash
2
3: ${MAIL_SERVER=$MAIL_PORT_25_TCP_ADDR}
4
5
6sed -i "s/relayhost =.*/relayhost = ${MAIL_SERVER}/" /etc/postfix/main.cf
7sed -i "s/myhostname =.*/myhostname = `hostname`/" /etc/postfix/main.cf
8
9exec /usr/lib/postfix/master -d -c /etc/postfix