diff --git a/Dockerfile b/Dockerfile index 306ba9a..36b78fe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,6 +44,7 @@ RUN yum -y install --enabler remi-php70 \ opendkim \ sendmail \ sendmail-cf \ + cyrus-sasl-plain \ awstats \ ln-http \ ln-awstats \ diff --git a/init b/init index 65933a3..3735493 100755 --- a/init +++ b/init @@ -29,6 +29,7 @@ if [ "$1" == "start" ]; then [ ! -f /etc/opendkim/keys/default.private ] && /usr/sbin/opendkim-default-keygen [ -x /usr/sbin/opendkim ] && /usr/sbin/opendkim -x /etc/opendkim.conf -P /var/run/opendkim.pid -f & echo "Starting Sendmail..." + [ -f /etc/mail/authinfo ] && /usr/sbin/saslauthd -m /run/saslauthd -a pam cd /etc/mail && make && m4 sendmail.mc > sendmail.cf && /usr/sbin/sendmail -q1h -bD & else echo "! NOT starting MAIL"