commit | 91b0ef97b0db87eea95d42d1af971999dd82fa7e | [log] [tgz] |
---|---|---|
author | Tony Mack <tony.mack@gmail.com> | Tue May 10 16:27:55 2016 +0000 |
committer | Tony Mack <tony.mack@gmail.com> | Tue May 10 16:27:55 2016 +0000 |
tree | 4af5cadbe795002a0a112ae3fd6ed083d0fb43e7 | |
parent | 42e2a7e44985b8e31e042d495192fb80846c4e49 [diff] [blame] |
initial checkin
diff --git a/containers/nagios/postfix.init b/containers/nagios/postfix.init new file mode 100755 index 0000000..29bf50b --- /dev/null +++ b/containers/nagios/postfix.init
@@ -0,0 +1,9 @@ +#!/bin/bash + +: ${MAIL_SERVER=$MAIL_PORT_25_TCP_ADDR} + + +sed -i "s/relayhost =.*/relayhost = ${MAIL_SERVER}/" /etc/postfix/main.cf +sed -i "s/myhostname =.*/myhostname = `hostname`/" /etc/postfix/main.cf + +exec /usr/lib/postfix/master -d -c /etc/postfix