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 786B

12345678910111213141516171819202122232425
  1. #! /usr/bin/env sh
  2. sed -e "s/POSTGRES_HOST/${POSTGRES_HOST}/" -i /etc/opendkim/opendkim.conf
  3. sed -e "s/POSTGRES_USER/${POSTGRES_USER}/" -i /etc/opendkim/opendkim.conf
  4. sed -e "s/POSTGRES_PASSWORD/${POSTGRES_PASSWORD}/" -i /etc/opendkim/opendkim.conf
  5. sed -e "s/POSTGRES_DB/${POSTGRES_DB}/" -i /etc/opendkim/opendkim.conf
  6. sed -e "s/OPENDKIM_PORT/${OPENDKIM_PORT}/" -i /etc/opendkim/opendkim.conf
  7. sed -e "s/MAIL_DOMAIN/${MAIL_DOMAIN}/" -i /etc/opendkim/KeyTable
  8. if [ ! -e /etc/opendkim/keys/dkim.private ]
  9. then
  10. cd /etc/opendkim/keys &&
  11. opendkim-genkey -s dkim -d "${MAIL_DOMAIN}"
  12. cd --
  13. fi
  14. sleep 5
  15. rm -f /var/run/rsyslogd.pid
  16. rm -f /var/run/opendkim/opendkim.pid
  17. service rsyslog start
  18. service opendkim start
  19. #/usr/sbin/opendkim -f -v -x /etc/opendkim.conf
  20. tail -f /var/log/syslog