diff --git a/Dockerfile b/Dockerfile index 5395bf5..c1c039f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -From ubuntu:trusty +From ubuntu:latest MAINTAINER Elliott Ye # Set noninteractive mode for apt-get diff --git a/assets/install.sh b/assets/install.sh index 0b2aaff..140222a 100755 --- a/assets/install.sh +++ b/assets/install.sh @@ -27,6 +27,7 @@ tail -f /var/log/mail.log EOF chmod +x /opt/postfix.sh postconf -e myhostname=$maildomain +postconf -e local_recipient_maps= postconf -F '*/*/chroot = n' ############ @@ -58,6 +59,7 @@ if [[ -n "$(find /etc/postfix/certs -iname *.crt)" && -n "$(find /etc/postfix/ce # /etc/postfix/main.cf postconf -e smtpd_tls_cert_file=$(find /etc/postfix/certs -iname *.crt) postconf -e smtpd_tls_key_file=$(find /etc/postfix/certs -iname *.key) + postconf -e smtpd_tls_loglevel=2 chmod 400 /etc/postfix/certs/*.* # /etc/postfix/master.cf postconf -M submission/inet="submission inet n - n - - smtpd"