From bd54ca82c479a40a09ed638893db7c363e2b1824 Mon Sep 17 00:00:00 2001 From: Christoph Date: Tue, 20 Nov 2018 23:03:42 +0100 Subject: [PATCH] install_sympa.sh: add 'dmarc_protection_mode dmarc_reject' to file '/etc/sympa/sympa.conf'. --- install_sympa.sh | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/install_sympa.sh b/install_sympa.sh index 7b19591..db43602 100755 --- a/install_sympa.sh +++ b/install_sympa.sh @@ -3258,6 +3258,39 @@ EOF See '${_log_file}' for further informations." fi + echo "" >> $_log_file + echo "## - Add \"dmarc_protection_mode dmarc_reject\" to file ${SYMPA_MAIN_CONF_DIR}/sympa.conf .." >> $_log_file + echo "## -" >> $_log_file + echononl "\tAdd \"dmarc_protection_mode dmarc_reject\" to file ${SYMPA_MAIN_CONF_DIR}/sympa.conf .." + echo "cat << EOF > ${SYMPA_MAIN_CONF_DIR}/sympa.conf + +## dmarc_protection_mode +## +## Fix to prevent 'yahoo' and other to reject mails from sympa mailing list manager. +## +## See also: +## https://sympa-community.github.io/manual/customize/dmarc-protection.html +dmarc_protection_mode dmarc_reject +EOF" >> $_log_file + cat << EOF >> ${SYMPA_MAIN_CONF_DIR}/sympa.conf 2>> $_log_file + +## dmarc_protection_mode +## +## Fix to prevent 'yahoo' and other to reject mails from sympa mailing list manager. +## +## See also: +## https://sympa-community.github.io/manual/customize/dmarc-protection.html +dmarc_protection_mode dmarc_reject +EOF + if [ "$?" = "0" ]; then + echo_ok + else + echo_failed + error "Cannot set \"dmarc_protection_mode\" in file \"${SYMPA_MAIN_CONF_DIR}/sympa.conf\"! \n + See '${_log_file}' for further informations." + fi + + ## - Set owner/group for \"sympa.conf\".. ## - echononl "\tSet owner/group for \"sympa.conf\".."