From b0aed5ce7e09d98d898f5b4a34e76f631ff96ffd Mon Sep 17 00:00:00 2001 From: TuxGasy Date: Sun, 11 Jun 2017 18:41:20 +0200 Subject: [PATCH] Add exim4 to allow send mail --- Dockerfile.template | 8 +++++++- docker-run.sh | 25 +++++++++++++++++++++++++ images/4.0.0-php7.0/Dockerfile | 6 ++++++ images/4.0.0-php7.0/docker-run.sh | 25 +++++++++++++++++++++++++ images/4.0.0-php7.1/Dockerfile | 6 ++++++ images/4.0.0-php7.1/docker-run.sh | 25 +++++++++++++++++++++++++ images/4.0.0/Dockerfile | 6 ++++++ images/4.0.0/docker-run.sh | 25 +++++++++++++++++++++++++ images/4.0.1-php7.0/Dockerfile | 6 ++++++ images/4.0.1-php7.0/docker-run.sh | 25 +++++++++++++++++++++++++ images/4.0.1-php7.1/Dockerfile | 6 ++++++ images/4.0.1-php7.1/docker-run.sh | 25 +++++++++++++++++++++++++ images/4.0.1/Dockerfile | 6 ++++++ images/4.0.1/docker-run.sh | 25 +++++++++++++++++++++++++ images/4.0.2-php7.0/Dockerfile | 6 ++++++ images/4.0.2-php7.0/docker-run.sh | 25 +++++++++++++++++++++++++ images/4.0.2-php7.1/Dockerfile | 6 ++++++ images/4.0.2-php7.1/docker-run.sh | 25 +++++++++++++++++++++++++ images/4.0.2/Dockerfile | 6 ++++++ images/4.0.2/docker-run.sh | 25 +++++++++++++++++++++++++ images/4.0.3-php7.0/Dockerfile | 6 ++++++ images/4.0.3-php7.0/docker-run.sh | 25 +++++++++++++++++++++++++ images/4.0.3-php7.1/Dockerfile | 6 ++++++ images/4.0.3-php7.1/docker-run.sh | 25 +++++++++++++++++++++++++ images/4.0.3/Dockerfile | 6 ++++++ images/4.0.3/docker-run.sh | 25 +++++++++++++++++++++++++ images/4.0.4-php7.0/Dockerfile | 6 ++++++ images/4.0.4-php7.0/docker-run.sh | 25 +++++++++++++++++++++++++ images/4.0.4-php7.1/Dockerfile | 6 ++++++ images/4.0.4-php7.1/docker-run.sh | 25 +++++++++++++++++++++++++ images/4.0.4/Dockerfile | 6 ++++++ images/4.0.4/docker-run.sh | 25 +++++++++++++++++++++++++ images/4.0.5-php7.0/Dockerfile | 6 ++++++ images/4.0.5-php7.0/docker-run.sh | 25 +++++++++++++++++++++++++ images/4.0.5-php7.1/Dockerfile | 6 ++++++ images/4.0.5-php7.1/docker-run.sh | 25 +++++++++++++++++++++++++ images/4.0.5/Dockerfile | 6 ++++++ images/4.0.5/docker-run.sh | 25 +++++++++++++++++++++++++ images/5.0.0-php7.0/Dockerfile | 6 ++++++ images/5.0.0-php7.0/docker-run.sh | 25 +++++++++++++++++++++++++ images/5.0.0-php7.1/Dockerfile | 6 ++++++ images/5.0.0-php7.1/docker-run.sh | 25 +++++++++++++++++++++++++ images/5.0.0/Dockerfile | 6 ++++++ images/5.0.0/docker-run.sh | 25 +++++++++++++++++++++++++ images/5.0.1-php7.0/Dockerfile | 6 ++++++ images/5.0.1-php7.0/docker-run.sh | 25 +++++++++++++++++++++++++ images/5.0.1-php7.1/Dockerfile | 6 ++++++ images/5.0.1-php7.1/docker-run.sh | 25 +++++++++++++++++++++++++ images/5.0.1/Dockerfile | 6 ++++++ images/5.0.1/docker-run.sh | 25 +++++++++++++++++++++++++ images/5.0.2-php7.0/Dockerfile | 6 ++++++ images/5.0.2-php7.0/docker-run.sh | 25 +++++++++++++++++++++++++ images/5.0.2-php7.1/Dockerfile | 6 ++++++ images/5.0.2-php7.1/docker-run.sh | 25 +++++++++++++++++++++++++ images/5.0.2/Dockerfile | 6 ++++++ images/5.0.2/docker-run.sh | 25 +++++++++++++++++++++++++ images/5.0.3-php7.0/Dockerfile | 6 ++++++ images/5.0.3-php7.0/docker-run.sh | 25 +++++++++++++++++++++++++ images/5.0.3-php7.1/Dockerfile | 6 ++++++ images/5.0.3-php7.1/docker-run.sh | 25 +++++++++++++++++++++++++ images/5.0.3/Dockerfile | 6 ++++++ images/5.0.3/docker-run.sh | 25 +++++++++++++++++++++++++ 62 files changed, 962 insertions(+), 1 deletion(-) diff --git a/Dockerfile.template b/Dockerfile.template index b59e2c8..1e35008 100644 --- a/Dockerfile.template +++ b/Dockerfile.template @@ -20,6 +20,8 @@ ENV WWW_GROUP_ID 33 ENV PHP_INI_DATE_TIMEZONE 'UTC' +ENV MAIL_DOMAIN_NAME 'localhost' + RUN apt-get update -q && apt-get upgrade -yq \ && apt-get install -yq \ libpng12-dev \ @@ -28,6 +30,7 @@ RUN apt-get update -q && apt-get upgrade -yq \ libxml2-dev \ mysql-client \ unzip \ + exim4 \ && rm -rf /var/lib/apt/lists/* \ && docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \ && docker-php-ext-install gd mysqli soap @@ -39,7 +42,10 @@ RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/htdocs/* /var/www/html/ && ln - RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/scripts /var/www/ RUN rm -rf /tmp/dolibarr -EXPOSE 80 +# Remove files used by exim4 (it's will be replace on first boot) +RUN rm -rf /etc/exim4/update-exim4.conf.conf /etc/mailname + +EXPOSE 80 25 COPY docker-run.sh /usr/local/bin/ ENTRYPOINT ["docker-run.sh"] diff --git a/docker-run.sh b/docker-run.sh index 48c52e6..dd7a955 100755 --- a/docker-run.sh +++ b/docker-run.sh @@ -12,9 +12,34 @@ chown -R www-data:www-data /var/www if [ ! -f /usr/local/etc/php/php.ini ]; then cat < /usr/local/etc/php/php.ini date.timezone = $PHP_INI_DATE_TIMEZONE +sendmail_path = /usr/sbin/sendmail -t -i EOF fi +if [ ! -f /etc/mailname ]; then + echo $MAIL_DOMAIN_NAME > /etc/mailname +fi + +if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then + cat < /etc/exim4/update-exim4.conf.conf +dc_eximconfig_configtype='internet' +dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost' +dc_local_interfaces='127.0.0.1; ::1' +dc_readhost='' +dc_relay_domains='' +dc_minimaldns='false' +dc_relay_nets='' +dc_smarthost='' +CFILEMODE='644' +dc_use_split_config='false' +dc_hide_mailname='true' +dc_mailname_in_oh='true' +dc_localdelivery='mail_spool' +EOF + + service exim4 restart +fi + if [ ! -f /var/www/html/conf/conf.php ]; then cat < /var/www/html/conf/conf.php /usr/local/etc/php/php.ini date.timezone = $PHP_INI_DATE_TIMEZONE +sendmail_path = /usr/sbin/sendmail -t -i EOF fi +if [ ! -f /etc/mailname ]; then + echo $MAIL_DOMAIN_NAME > /etc/mailname +fi + +if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then + cat < /etc/exim4/update-exim4.conf.conf +dc_eximconfig_configtype='internet' +dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost' +dc_local_interfaces='127.0.0.1; ::1' +dc_readhost='' +dc_relay_domains='' +dc_minimaldns='false' +dc_relay_nets='' +dc_smarthost='' +CFILEMODE='644' +dc_use_split_config='false' +dc_hide_mailname='true' +dc_mailname_in_oh='true' +dc_localdelivery='mail_spool' +EOF + + service exim4 restart +fi + if [ ! -f /var/www/html/conf/conf.php ]; then cat < /var/www/html/conf/conf.php /usr/local/etc/php/php.ini date.timezone = $PHP_INI_DATE_TIMEZONE +sendmail_path = /usr/sbin/sendmail -t -i EOF fi +if [ ! -f /etc/mailname ]; then + echo $MAIL_DOMAIN_NAME > /etc/mailname +fi + +if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then + cat < /etc/exim4/update-exim4.conf.conf +dc_eximconfig_configtype='internet' +dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost' +dc_local_interfaces='127.0.0.1; ::1' +dc_readhost='' +dc_relay_domains='' +dc_minimaldns='false' +dc_relay_nets='' +dc_smarthost='' +CFILEMODE='644' +dc_use_split_config='false' +dc_hide_mailname='true' +dc_mailname_in_oh='true' +dc_localdelivery='mail_spool' +EOF + + service exim4 restart +fi + if [ ! -f /var/www/html/conf/conf.php ]; then cat < /var/www/html/conf/conf.php /usr/local/etc/php/php.ini date.timezone = $PHP_INI_DATE_TIMEZONE +sendmail_path = /usr/sbin/sendmail -t -i EOF fi +if [ ! -f /etc/mailname ]; then + echo $MAIL_DOMAIN_NAME > /etc/mailname +fi + +if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then + cat < /etc/exim4/update-exim4.conf.conf +dc_eximconfig_configtype='internet' +dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost' +dc_local_interfaces='127.0.0.1; ::1' +dc_readhost='' +dc_relay_domains='' +dc_minimaldns='false' +dc_relay_nets='' +dc_smarthost='' +CFILEMODE='644' +dc_use_split_config='false' +dc_hide_mailname='true' +dc_mailname_in_oh='true' +dc_localdelivery='mail_spool' +EOF + + service exim4 restart +fi + if [ ! -f /var/www/html/conf/conf.php ]; then cat < /var/www/html/conf/conf.php /usr/local/etc/php/php.ini date.timezone = $PHP_INI_DATE_TIMEZONE +sendmail_path = /usr/sbin/sendmail -t -i EOF fi +if [ ! -f /etc/mailname ]; then + echo $MAIL_DOMAIN_NAME > /etc/mailname +fi + +if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then + cat < /etc/exim4/update-exim4.conf.conf +dc_eximconfig_configtype='internet' +dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost' +dc_local_interfaces='127.0.0.1; ::1' +dc_readhost='' +dc_relay_domains='' +dc_minimaldns='false' +dc_relay_nets='' +dc_smarthost='' +CFILEMODE='644' +dc_use_split_config='false' +dc_hide_mailname='true' +dc_mailname_in_oh='true' +dc_localdelivery='mail_spool' +EOF + + service exim4 restart +fi + if [ ! -f /var/www/html/conf/conf.php ]; then cat < /var/www/html/conf/conf.php /usr/local/etc/php/php.ini date.timezone = $PHP_INI_DATE_TIMEZONE +sendmail_path = /usr/sbin/sendmail -t -i EOF fi +if [ ! -f /etc/mailname ]; then + echo $MAIL_DOMAIN_NAME > /etc/mailname +fi + +if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then + cat < /etc/exim4/update-exim4.conf.conf +dc_eximconfig_configtype='internet' +dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost' +dc_local_interfaces='127.0.0.1; ::1' +dc_readhost='' +dc_relay_domains='' +dc_minimaldns='false' +dc_relay_nets='' +dc_smarthost='' +CFILEMODE='644' +dc_use_split_config='false' +dc_hide_mailname='true' +dc_mailname_in_oh='true' +dc_localdelivery='mail_spool' +EOF + + service exim4 restart +fi + if [ ! -f /var/www/html/conf/conf.php ]; then cat < /var/www/html/conf/conf.php /usr/local/etc/php/php.ini date.timezone = $PHP_INI_DATE_TIMEZONE +sendmail_path = /usr/sbin/sendmail -t -i EOF fi +if [ ! -f /etc/mailname ]; then + echo $MAIL_DOMAIN_NAME > /etc/mailname +fi + +if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then + cat < /etc/exim4/update-exim4.conf.conf +dc_eximconfig_configtype='internet' +dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost' +dc_local_interfaces='127.0.0.1; ::1' +dc_readhost='' +dc_relay_domains='' +dc_minimaldns='false' +dc_relay_nets='' +dc_smarthost='' +CFILEMODE='644' +dc_use_split_config='false' +dc_hide_mailname='true' +dc_mailname_in_oh='true' +dc_localdelivery='mail_spool' +EOF + + service exim4 restart +fi + if [ ! -f /var/www/html/conf/conf.php ]; then cat < /var/www/html/conf/conf.php /usr/local/etc/php/php.ini date.timezone = $PHP_INI_DATE_TIMEZONE +sendmail_path = /usr/sbin/sendmail -t -i EOF fi +if [ ! -f /etc/mailname ]; then + echo $MAIL_DOMAIN_NAME > /etc/mailname +fi + +if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then + cat < /etc/exim4/update-exim4.conf.conf +dc_eximconfig_configtype='internet' +dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost' +dc_local_interfaces='127.0.0.1; ::1' +dc_readhost='' +dc_relay_domains='' +dc_minimaldns='false' +dc_relay_nets='' +dc_smarthost='' +CFILEMODE='644' +dc_use_split_config='false' +dc_hide_mailname='true' +dc_mailname_in_oh='true' +dc_localdelivery='mail_spool' +EOF + + service exim4 restart +fi + if [ ! -f /var/www/html/conf/conf.php ]; then cat < /var/www/html/conf/conf.php /usr/local/etc/php/php.ini date.timezone = $PHP_INI_DATE_TIMEZONE +sendmail_path = /usr/sbin/sendmail -t -i EOF fi +if [ ! -f /etc/mailname ]; then + echo $MAIL_DOMAIN_NAME > /etc/mailname +fi + +if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then + cat < /etc/exim4/update-exim4.conf.conf +dc_eximconfig_configtype='internet' +dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost' +dc_local_interfaces='127.0.0.1; ::1' +dc_readhost='' +dc_relay_domains='' +dc_minimaldns='false' +dc_relay_nets='' +dc_smarthost='' +CFILEMODE='644' +dc_use_split_config='false' +dc_hide_mailname='true' +dc_mailname_in_oh='true' +dc_localdelivery='mail_spool' +EOF + + service exim4 restart +fi + if [ ! -f /var/www/html/conf/conf.php ]; then cat < /var/www/html/conf/conf.php /usr/local/etc/php/php.ini date.timezone = $PHP_INI_DATE_TIMEZONE +sendmail_path = /usr/sbin/sendmail -t -i EOF fi +if [ ! -f /etc/mailname ]; then + echo $MAIL_DOMAIN_NAME > /etc/mailname +fi + +if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then + cat < /etc/exim4/update-exim4.conf.conf +dc_eximconfig_configtype='internet' +dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost' +dc_local_interfaces='127.0.0.1; ::1' +dc_readhost='' +dc_relay_domains='' +dc_minimaldns='false' +dc_relay_nets='' +dc_smarthost='' +CFILEMODE='644' +dc_use_split_config='false' +dc_hide_mailname='true' +dc_mailname_in_oh='true' +dc_localdelivery='mail_spool' +EOF + + service exim4 restart +fi + if [ ! -f /var/www/html/conf/conf.php ]; then cat < /var/www/html/conf/conf.php /usr/local/etc/php/php.ini date.timezone = $PHP_INI_DATE_TIMEZONE +sendmail_path = /usr/sbin/sendmail -t -i EOF fi +if [ ! -f /etc/mailname ]; then + echo $MAIL_DOMAIN_NAME > /etc/mailname +fi + +if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then + cat < /etc/exim4/update-exim4.conf.conf +dc_eximconfig_configtype='internet' +dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost' +dc_local_interfaces='127.0.0.1; ::1' +dc_readhost='' +dc_relay_domains='' +dc_minimaldns='false' +dc_relay_nets='' +dc_smarthost='' +CFILEMODE='644' +dc_use_split_config='false' +dc_hide_mailname='true' +dc_mailname_in_oh='true' +dc_localdelivery='mail_spool' +EOF + + service exim4 restart +fi + if [ ! -f /var/www/html/conf/conf.php ]; then cat < /var/www/html/conf/conf.php /usr/local/etc/php/php.ini date.timezone = $PHP_INI_DATE_TIMEZONE +sendmail_path = /usr/sbin/sendmail -t -i EOF fi +if [ ! -f /etc/mailname ]; then + echo $MAIL_DOMAIN_NAME > /etc/mailname +fi + +if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then + cat < /etc/exim4/update-exim4.conf.conf +dc_eximconfig_configtype='internet' +dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost' +dc_local_interfaces='127.0.0.1; ::1' +dc_readhost='' +dc_relay_domains='' +dc_minimaldns='false' +dc_relay_nets='' +dc_smarthost='' +CFILEMODE='644' +dc_use_split_config='false' +dc_hide_mailname='true' +dc_mailname_in_oh='true' +dc_localdelivery='mail_spool' +EOF + + service exim4 restart +fi + if [ ! -f /var/www/html/conf/conf.php ]; then cat < /var/www/html/conf/conf.php /usr/local/etc/php/php.ini date.timezone = $PHP_INI_DATE_TIMEZONE +sendmail_path = /usr/sbin/sendmail -t -i EOF fi +if [ ! -f /etc/mailname ]; then + echo $MAIL_DOMAIN_NAME > /etc/mailname +fi + +if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then + cat < /etc/exim4/update-exim4.conf.conf +dc_eximconfig_configtype='internet' +dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost' +dc_local_interfaces='127.0.0.1; ::1' +dc_readhost='' +dc_relay_domains='' +dc_minimaldns='false' +dc_relay_nets='' +dc_smarthost='' +CFILEMODE='644' +dc_use_split_config='false' +dc_hide_mailname='true' +dc_mailname_in_oh='true' +dc_localdelivery='mail_spool' +EOF + + service exim4 restart +fi + if [ ! -f /var/www/html/conf/conf.php ]; then cat < /var/www/html/conf/conf.php /usr/local/etc/php/php.ini date.timezone = $PHP_INI_DATE_TIMEZONE +sendmail_path = /usr/sbin/sendmail -t -i EOF fi +if [ ! -f /etc/mailname ]; then + echo $MAIL_DOMAIN_NAME > /etc/mailname +fi + +if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then + cat < /etc/exim4/update-exim4.conf.conf +dc_eximconfig_configtype='internet' +dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost' +dc_local_interfaces='127.0.0.1; ::1' +dc_readhost='' +dc_relay_domains='' +dc_minimaldns='false' +dc_relay_nets='' +dc_smarthost='' +CFILEMODE='644' +dc_use_split_config='false' +dc_hide_mailname='true' +dc_mailname_in_oh='true' +dc_localdelivery='mail_spool' +EOF + + service exim4 restart +fi + if [ ! -f /var/www/html/conf/conf.php ]; then cat < /var/www/html/conf/conf.php /usr/local/etc/php/php.ini date.timezone = $PHP_INI_DATE_TIMEZONE +sendmail_path = /usr/sbin/sendmail -t -i EOF fi +if [ ! -f /etc/mailname ]; then + echo $MAIL_DOMAIN_NAME > /etc/mailname +fi + +if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then + cat < /etc/exim4/update-exim4.conf.conf +dc_eximconfig_configtype='internet' +dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost' +dc_local_interfaces='127.0.0.1; ::1' +dc_readhost='' +dc_relay_domains='' +dc_minimaldns='false' +dc_relay_nets='' +dc_smarthost='' +CFILEMODE='644' +dc_use_split_config='false' +dc_hide_mailname='true' +dc_mailname_in_oh='true' +dc_localdelivery='mail_spool' +EOF + + service exim4 restart +fi + if [ ! -f /var/www/html/conf/conf.php ]; then cat < /var/www/html/conf/conf.php /usr/local/etc/php/php.ini date.timezone = $PHP_INI_DATE_TIMEZONE +sendmail_path = /usr/sbin/sendmail -t -i EOF fi +if [ ! -f /etc/mailname ]; then + echo $MAIL_DOMAIN_NAME > /etc/mailname +fi + +if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then + cat < /etc/exim4/update-exim4.conf.conf +dc_eximconfig_configtype='internet' +dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost' +dc_local_interfaces='127.0.0.1; ::1' +dc_readhost='' +dc_relay_domains='' +dc_minimaldns='false' +dc_relay_nets='' +dc_smarthost='' +CFILEMODE='644' +dc_use_split_config='false' +dc_hide_mailname='true' +dc_mailname_in_oh='true' +dc_localdelivery='mail_spool' +EOF + + service exim4 restart +fi + if [ ! -f /var/www/html/conf/conf.php ]; then cat < /var/www/html/conf/conf.php /usr/local/etc/php/php.ini date.timezone = $PHP_INI_DATE_TIMEZONE +sendmail_path = /usr/sbin/sendmail -t -i EOF fi +if [ ! -f /etc/mailname ]; then + echo $MAIL_DOMAIN_NAME > /etc/mailname +fi + +if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then + cat < /etc/exim4/update-exim4.conf.conf +dc_eximconfig_configtype='internet' +dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost' +dc_local_interfaces='127.0.0.1; ::1' +dc_readhost='' +dc_relay_domains='' +dc_minimaldns='false' +dc_relay_nets='' +dc_smarthost='' +CFILEMODE='644' +dc_use_split_config='false' +dc_hide_mailname='true' +dc_mailname_in_oh='true' +dc_localdelivery='mail_spool' +EOF + + service exim4 restart +fi + if [ ! -f /var/www/html/conf/conf.php ]; then cat < /var/www/html/conf/conf.php /usr/local/etc/php/php.ini date.timezone = $PHP_INI_DATE_TIMEZONE +sendmail_path = /usr/sbin/sendmail -t -i EOF fi +if [ ! -f /etc/mailname ]; then + echo $MAIL_DOMAIN_NAME > /etc/mailname +fi + +if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then + cat < /etc/exim4/update-exim4.conf.conf +dc_eximconfig_configtype='internet' +dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost' +dc_local_interfaces='127.0.0.1; ::1' +dc_readhost='' +dc_relay_domains='' +dc_minimaldns='false' +dc_relay_nets='' +dc_smarthost='' +CFILEMODE='644' +dc_use_split_config='false' +dc_hide_mailname='true' +dc_mailname_in_oh='true' +dc_localdelivery='mail_spool' +EOF + + service exim4 restart +fi + if [ ! -f /var/www/html/conf/conf.php ]; then cat < /var/www/html/conf/conf.php /usr/local/etc/php/php.ini date.timezone = $PHP_INI_DATE_TIMEZONE +sendmail_path = /usr/sbin/sendmail -t -i EOF fi +if [ ! -f /etc/mailname ]; then + echo $MAIL_DOMAIN_NAME > /etc/mailname +fi + +if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then + cat < /etc/exim4/update-exim4.conf.conf +dc_eximconfig_configtype='internet' +dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost' +dc_local_interfaces='127.0.0.1; ::1' +dc_readhost='' +dc_relay_domains='' +dc_minimaldns='false' +dc_relay_nets='' +dc_smarthost='' +CFILEMODE='644' +dc_use_split_config='false' +dc_hide_mailname='true' +dc_mailname_in_oh='true' +dc_localdelivery='mail_spool' +EOF + + service exim4 restart +fi + if [ ! -f /var/www/html/conf/conf.php ]; then cat < /var/www/html/conf/conf.php /usr/local/etc/php/php.ini date.timezone = $PHP_INI_DATE_TIMEZONE +sendmail_path = /usr/sbin/sendmail -t -i EOF fi +if [ ! -f /etc/mailname ]; then + echo $MAIL_DOMAIN_NAME > /etc/mailname +fi + +if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then + cat < /etc/exim4/update-exim4.conf.conf +dc_eximconfig_configtype='internet' +dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost' +dc_local_interfaces='127.0.0.1; ::1' +dc_readhost='' +dc_relay_domains='' +dc_minimaldns='false' +dc_relay_nets='' +dc_smarthost='' +CFILEMODE='644' +dc_use_split_config='false' +dc_hide_mailname='true' +dc_mailname_in_oh='true' +dc_localdelivery='mail_spool' +EOF + + service exim4 restart +fi + if [ ! -f /var/www/html/conf/conf.php ]; then cat < /var/www/html/conf/conf.php /usr/local/etc/php/php.ini date.timezone = $PHP_INI_DATE_TIMEZONE +sendmail_path = /usr/sbin/sendmail -t -i EOF fi +if [ ! -f /etc/mailname ]; then + echo $MAIL_DOMAIN_NAME > /etc/mailname +fi + +if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then + cat < /etc/exim4/update-exim4.conf.conf +dc_eximconfig_configtype='internet' +dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost' +dc_local_interfaces='127.0.0.1; ::1' +dc_readhost='' +dc_relay_domains='' +dc_minimaldns='false' +dc_relay_nets='' +dc_smarthost='' +CFILEMODE='644' +dc_use_split_config='false' +dc_hide_mailname='true' +dc_mailname_in_oh='true' +dc_localdelivery='mail_spool' +EOF + + service exim4 restart +fi + if [ ! -f /var/www/html/conf/conf.php ]; then cat < /var/www/html/conf/conf.php /usr/local/etc/php/php.ini date.timezone = $PHP_INI_DATE_TIMEZONE +sendmail_path = /usr/sbin/sendmail -t -i EOF fi +if [ ! -f /etc/mailname ]; then + echo $MAIL_DOMAIN_NAME > /etc/mailname +fi + +if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then + cat < /etc/exim4/update-exim4.conf.conf +dc_eximconfig_configtype='internet' +dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost' +dc_local_interfaces='127.0.0.1; ::1' +dc_readhost='' +dc_relay_domains='' +dc_minimaldns='false' +dc_relay_nets='' +dc_smarthost='' +CFILEMODE='644' +dc_use_split_config='false' +dc_hide_mailname='true' +dc_mailname_in_oh='true' +dc_localdelivery='mail_spool' +EOF + + service exim4 restart +fi + if [ ! -f /var/www/html/conf/conf.php ]; then cat < /var/www/html/conf/conf.php /usr/local/etc/php/php.ini date.timezone = $PHP_INI_DATE_TIMEZONE +sendmail_path = /usr/sbin/sendmail -t -i EOF fi +if [ ! -f /etc/mailname ]; then + echo $MAIL_DOMAIN_NAME > /etc/mailname +fi + +if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then + cat < /etc/exim4/update-exim4.conf.conf +dc_eximconfig_configtype='internet' +dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost' +dc_local_interfaces='127.0.0.1; ::1' +dc_readhost='' +dc_relay_domains='' +dc_minimaldns='false' +dc_relay_nets='' +dc_smarthost='' +CFILEMODE='644' +dc_use_split_config='false' +dc_hide_mailname='true' +dc_mailname_in_oh='true' +dc_localdelivery='mail_spool' +EOF + + service exim4 restart +fi + if [ ! -f /var/www/html/conf/conf.php ]; then cat < /var/www/html/conf/conf.php /usr/local/etc/php/php.ini date.timezone = $PHP_INI_DATE_TIMEZONE +sendmail_path = /usr/sbin/sendmail -t -i EOF fi +if [ ! -f /etc/mailname ]; then + echo $MAIL_DOMAIN_NAME > /etc/mailname +fi + +if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then + cat < /etc/exim4/update-exim4.conf.conf +dc_eximconfig_configtype='internet' +dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost' +dc_local_interfaces='127.0.0.1; ::1' +dc_readhost='' +dc_relay_domains='' +dc_minimaldns='false' +dc_relay_nets='' +dc_smarthost='' +CFILEMODE='644' +dc_use_split_config='false' +dc_hide_mailname='true' +dc_mailname_in_oh='true' +dc_localdelivery='mail_spool' +EOF + + service exim4 restart +fi + if [ ! -f /var/www/html/conf/conf.php ]; then cat < /var/www/html/conf/conf.php /usr/local/etc/php/php.ini date.timezone = $PHP_INI_DATE_TIMEZONE +sendmail_path = /usr/sbin/sendmail -t -i EOF fi +if [ ! -f /etc/mailname ]; then + echo $MAIL_DOMAIN_NAME > /etc/mailname +fi + +if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then + cat < /etc/exim4/update-exim4.conf.conf +dc_eximconfig_configtype='internet' +dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost' +dc_local_interfaces='127.0.0.1; ::1' +dc_readhost='' +dc_relay_domains='' +dc_minimaldns='false' +dc_relay_nets='' +dc_smarthost='' +CFILEMODE='644' +dc_use_split_config='false' +dc_hide_mailname='true' +dc_mailname_in_oh='true' +dc_localdelivery='mail_spool' +EOF + + service exim4 restart +fi + if [ ! -f /var/www/html/conf/conf.php ]; then cat < /var/www/html/conf/conf.php /usr/local/etc/php/php.ini date.timezone = $PHP_INI_DATE_TIMEZONE +sendmail_path = /usr/sbin/sendmail -t -i EOF fi +if [ ! -f /etc/mailname ]; then + echo $MAIL_DOMAIN_NAME > /etc/mailname +fi + +if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then + cat < /etc/exim4/update-exim4.conf.conf +dc_eximconfig_configtype='internet' +dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost' +dc_local_interfaces='127.0.0.1; ::1' +dc_readhost='' +dc_relay_domains='' +dc_minimaldns='false' +dc_relay_nets='' +dc_smarthost='' +CFILEMODE='644' +dc_use_split_config='false' +dc_hide_mailname='true' +dc_mailname_in_oh='true' +dc_localdelivery='mail_spool' +EOF + + service exim4 restart +fi + if [ ! -f /var/www/html/conf/conf.php ]; then cat < /var/www/html/conf/conf.php /usr/local/etc/php/php.ini date.timezone = $PHP_INI_DATE_TIMEZONE +sendmail_path = /usr/sbin/sendmail -t -i EOF fi +if [ ! -f /etc/mailname ]; then + echo $MAIL_DOMAIN_NAME > /etc/mailname +fi + +if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then + cat < /etc/exim4/update-exim4.conf.conf +dc_eximconfig_configtype='internet' +dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost' +dc_local_interfaces='127.0.0.1; ::1' +dc_readhost='' +dc_relay_domains='' +dc_minimaldns='false' +dc_relay_nets='' +dc_smarthost='' +CFILEMODE='644' +dc_use_split_config='false' +dc_hide_mailname='true' +dc_mailname_in_oh='true' +dc_localdelivery='mail_spool' +EOF + + service exim4 restart +fi + if [ ! -f /var/www/html/conf/conf.php ]; then cat < /var/www/html/conf/conf.php /usr/local/etc/php/php.ini date.timezone = $PHP_INI_DATE_TIMEZONE +sendmail_path = /usr/sbin/sendmail -t -i EOF fi +if [ ! -f /etc/mailname ]; then + echo $MAIL_DOMAIN_NAME > /etc/mailname +fi + +if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then + cat < /etc/exim4/update-exim4.conf.conf +dc_eximconfig_configtype='internet' +dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost' +dc_local_interfaces='127.0.0.1; ::1' +dc_readhost='' +dc_relay_domains='' +dc_minimaldns='false' +dc_relay_nets='' +dc_smarthost='' +CFILEMODE='644' +dc_use_split_config='false' +dc_hide_mailname='true' +dc_mailname_in_oh='true' +dc_localdelivery='mail_spool' +EOF + + service exim4 restart +fi + if [ ! -f /var/www/html/conf/conf.php ]; then cat < /var/www/html/conf/conf.php /usr/local/etc/php/php.ini date.timezone = $PHP_INI_DATE_TIMEZONE +sendmail_path = /usr/sbin/sendmail -t -i EOF fi +if [ ! -f /etc/mailname ]; then + echo $MAIL_DOMAIN_NAME > /etc/mailname +fi + +if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then + cat < /etc/exim4/update-exim4.conf.conf +dc_eximconfig_configtype='internet' +dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost' +dc_local_interfaces='127.0.0.1; ::1' +dc_readhost='' +dc_relay_domains='' +dc_minimaldns='false' +dc_relay_nets='' +dc_smarthost='' +CFILEMODE='644' +dc_use_split_config='false' +dc_hide_mailname='true' +dc_mailname_in_oh='true' +dc_localdelivery='mail_spool' +EOF + + service exim4 restart +fi + if [ ! -f /var/www/html/conf/conf.php ]; then cat < /var/www/html/conf/conf.php /usr/local/etc/php/php.ini date.timezone = $PHP_INI_DATE_TIMEZONE +sendmail_path = /usr/sbin/sendmail -t -i EOF fi +if [ ! -f /etc/mailname ]; then + echo $MAIL_DOMAIN_NAME > /etc/mailname +fi + +if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then + cat < /etc/exim4/update-exim4.conf.conf +dc_eximconfig_configtype='internet' +dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost' +dc_local_interfaces='127.0.0.1; ::1' +dc_readhost='' +dc_relay_domains='' +dc_minimaldns='false' +dc_relay_nets='' +dc_smarthost='' +CFILEMODE='644' +dc_use_split_config='false' +dc_hide_mailname='true' +dc_mailname_in_oh='true' +dc_localdelivery='mail_spool' +EOF + + service exim4 restart +fi + if [ ! -f /var/www/html/conf/conf.php ]; then cat < /var/www/html/conf/conf.php /usr/local/etc/php/php.ini date.timezone = $PHP_INI_DATE_TIMEZONE +sendmail_path = /usr/sbin/sendmail -t -i EOF fi +if [ ! -f /etc/mailname ]; then + echo $MAIL_DOMAIN_NAME > /etc/mailname +fi + +if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then + cat < /etc/exim4/update-exim4.conf.conf +dc_eximconfig_configtype='internet' +dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost' +dc_local_interfaces='127.0.0.1; ::1' +dc_readhost='' +dc_relay_domains='' +dc_minimaldns='false' +dc_relay_nets='' +dc_smarthost='' +CFILEMODE='644' +dc_use_split_config='false' +dc_hide_mailname='true' +dc_mailname_in_oh='true' +dc_localdelivery='mail_spool' +EOF + + service exim4 restart +fi + if [ ! -f /var/www/html/conf/conf.php ]; then cat < /var/www/html/conf/conf.php