#! /usr/bin/env sh sed -e "s/hosts *=.*/hosts = ${POSTGRES_HOST}/g" -i /etc/postfix/pgsql_* sed -e "s/user *=.*/user = ${POSTGRES_USER}/g" -i /etc/postfix/pgsql_* sed -e "s/password *=.*/password = ${POSTGRES_PASSWORD}/g" -i /etc/postfix/pgsql_* sed -e "s/dbname *=.*/dbname = ${POSTGRES_DB}/g" -i /etc/postfix/pgsql_* postconf -e mydomain="${MAIL_DOMAIN}" postconf -e myhostname="${MAIL_HOSTNAME}" service rsyslog start service postfix start sleep 3 tail -f /var/log/mail.info