You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

run.sh 643B

123456789101112131415161718
  1. #! /usr/bin/env sh
  2. sed -e "s/hosts *=.*/hosts = ${POSTGRES_HOST}/g" -i /etc/postfix/pgsql_*
  3. sed -e "s/user *=.*/user = ${POSTGRES_USER}/g" -i /etc/postfix/pgsql_*
  4. sed -e "s/password *=.*/password = ${POSTGRES_PASSWORD}/g" -i /etc/postfix/pgsql_*
  5. sed -e "s/dbname *=.*/dbname = ${POSTGRES_DB}/g" -i /etc/postfix/pgsql_*
  6. postconf -e mydomain="${MAIL_DOMAIN}"
  7. postconf -e myhostname="${MAIL_HOSTNAME}"
  8. postconf -e smtpd_sasl_path="inet:${DOVECOT_HOST}:${DOVECOT_SASL_PORT}"
  9. postconf -e virtual_transport="lmtp:inet:${DOVECOT_HOST}:${DOVECOT_LMTP_PORT}"
  10. service rsyslog start &&
  11. service postfix start &&
  12. sleep 3 &&
  13. tail -f /var/log/mail.info