Can change RewriteDomain option of ssmtp

This commit is contained in:
nemunaire 2022-02-06 00:22:50 +01:00
parent ee50bed168
commit 3e34f686b5

View File

@ -1,5 +1,6 @@
#!/bin/sh
[ -n "${MAILER_HOST}" ] && sed -r "/^mailhub=/s/.*/mailhub=${MAILER_HOST}/" /etc/ssmtp/ssmtp.conf > ~/ssmtp.conf && cat ~/ssmtp.conf > /etc/ssmtp/ssmtp.conf
[ -n "${MAILER_REWRITEDOMAIN}" ] && sed -r "/^#?rewriteDomain=/s/.*/rewriteDomain=${MAILER_REWRITEDOMAIN}/" /etc/ssmtp/ssmtp.conf > ~/ssmtp.conf && cat ~/ssmtp.conf > /etc/ssmtp/ssmtp.conf
exec $@