Switched to msmtp
ssmtp is not available in debian buster, so we can't send mails that way anymore. Switched to msmtp, which serves the same purpose.
This commit is contained in:
parent
c183184af9
commit
fbd6e8b0f5
@ -5,7 +5,7 @@ RUN set -ex; \
|
|||||||
apt-get update; \
|
apt-get update; \
|
||||||
\
|
\
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
ssmtp \
|
msmtp \
|
||||||
; \
|
; \
|
||||||
\
|
\
|
||||||
rm -rf /var/lib/apt/lists/* ;\
|
rm -rf /var/lib/apt/lists/* ;\
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
# Configuration options you usually edit go here
|
# Configuration options you usually edit go here
|
||||||
|
CONTAINER_MSMTPCONFDIR=/etc
|
||||||
CONTAINER_SSMTPCONFDIR=/etc/ssmtp
|
CONTAINER_SSMTPCONFDIR=/etc/ssmtp
|
||||||
CONTAINER_PHP_CONFD=/usr/local/etc/php/conf.d
|
CONTAINER_PHP_CONFD=/usr/local/etc/php/conf.d
|
||||||
|
|
||||||
@ -14,6 +15,7 @@ BUILDDIR=$(pwd)/build
|
|||||||
SCRIPTS_SRC=${SRCDIR}/scripts
|
SCRIPTS_SRC=${SRCDIR}/scripts
|
||||||
ROOTFSTREE=${TMPDIR}/tree
|
ROOTFSTREE=${TMPDIR}/tree
|
||||||
ROOTFSFILE=${BUILDDIR}/rootfs.tar.gz
|
ROOTFSFILE=${BUILDDIR}/rootfs.tar.gz
|
||||||
|
MSMTPRC_DST=${ROOTFSTREE}${CONTAINER_MSMTPCONFDIR}
|
||||||
SSMTPCONF_DST=${ROOTFSTREE}${CONTAINER_SSMTPCONFDIR}
|
SSMTPCONF_DST=${ROOTFSTREE}${CONTAINER_SSMTPCONFDIR}
|
||||||
PHP_CONFD_DST=${ROOTFSTREE}${CONTAINER_PHP_CONFD}
|
PHP_CONFD_DST=${ROOTFSTREE}${CONTAINER_PHP_CONFD}
|
||||||
|
|
||||||
@ -31,8 +33,12 @@ mkdir ${BUILDDIR}
|
|||||||
#### Do the work.
|
#### Do the work.
|
||||||
|
|
||||||
# Create SSMTP config file
|
# Create SSMTP config file
|
||||||
mkdir -p ${SSMTPCONF_DST}
|
#mkdir -p ${SSMTPCONF_DST}
|
||||||
cp ${SRCDIR}/ssmtp.conf ${SSMTPCONF_DST}/ssmtp.conf
|
#cp ${SRCDIR}/ssmtp.conf ${SSMTPCONF_DST}/ssmtp.conf
|
||||||
|
|
||||||
|
# Create MSMTP config file (SSMTP is currently unavailble in Debian Buster)
|
||||||
|
mkdir -p ${MSMTPRC_DST}
|
||||||
|
cp ${SRCDIR}/msmtprc ${MSMTPRC_DST}/msmtprc
|
||||||
|
|
||||||
# Setup PHP
|
# Setup PHP
|
||||||
mkdir -p ${PHP_CONFD_DST}
|
mkdir -p ${PHP_CONFD_DST}
|
||||||
|
@ -1 +1 @@
|
|||||||
sendmail_path = "/usr/sbin/ssmtp -t -i"
|
sendmail_path = "/usr/bin/msmtp -t"
|
||||||
|
10
src/msmtprc
Normal file
10
src/msmtprc
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
account default
|
||||||
|
|
||||||
|
host nathan.nehmer.net
|
||||||
|
tls on
|
||||||
|
tls_starttls on
|
||||||
|
domain docker.nehmer.net
|
||||||
|
|
||||||
|
from postmaster@nehmer.net
|
||||||
|
maildomain nehmer.net
|
||||||
|
|
Loading…
Reference in New Issue
Block a user