Files
kopano-docker/postfix/entrypoint.sh
2023-10-26 20:55:23 +00:00

15 lines
530 B
Bash

#!/usr/bin/env sh
set -e
# https://github.com/moby/moby/issues/31243#issuecomment-406879017
# /usr/sbin/rsyslogd
chmod 777 /var/log
service rsyslog start
# https://serverfault.com/questions/1003885/postfix-in-docker-host-or-domain-name-not-found-dns-and-docker
cp /etc/resolv.conf /var/spool/postfix/etc/resolv.conf
cp -r /etc/ssl/usr-local-share-ca-certificates/* /usr/local/share/ca-certificates/
update-ca-certificates
postmap /etc/postfix/virtual
postmap /etc/postfix/vmailbox
postmap /etc/postfix/relay_clientcerts
exec "$@"