Do not install DMARC Report support on mail relay systems.

This commit is contained in:
2026-01-04 23:15:23 +01:00
parent 50bc28dc2a
commit fdd17790f6

View File

@@ -452,8 +452,8 @@ else
fi
INSTALL_DMARC_REPORT_SUPPORT=false
if ! ${IS_RELAY_HOST} ; then
INSTALL_DMARC_REPORT_SUPPORT=false
echo ""
echo -e "\033[32m--\033[m"
echo ""
@@ -580,9 +580,6 @@ fi
[[ "$IPV6" = "disabled" ]] && IPV6=""
exit
clean_up 1
# - Synchronise package index files with the repository
# -
@@ -3827,7 +3824,8 @@ if ${INSTALL_DMARC_REPORT_SUPPORT} ; then
# - ├── processed/ # Originalmails (Archiv)
# - ├── exports/ # CSV- und Top-Auswertungen
# - └── logs/ # Logdateien
echononl "Add directory Structure for collecting and analysing DMARC reports.."
echo ""
echononl " Add directory Structure for collecting and analysing DMARC reports.."
install -d -o vmail -g vmail -m 750 /var/lib/dmarc/{reports,processed,exports,logs} > /dev/null 2> $log_file
if [[ $? -eq 0 ]] ; then
echo_ok
@@ -3836,7 +3834,7 @@ if ${INSTALL_DMARC_REPORT_SUPPORT} ; then
error "$(cat $log_file)"
fi
echononl "Add 'dmarc-pipe' entry to $postfix_master_cf .."
echononl " Add 'dmarc-pipe' entry to $postfix_master_cf .."
cat <<EOF >> /etc/postfix/transport 2> $log_file
# - Take care your master.cf file ($postfix_master_cf) contains:
@@ -3854,7 +3852,7 @@ EOF
error "$(cat $log_file)"
fi
echononl "Create Postfix lookup table '/etc/postfix/transport'.."
echononl " Create Postfix lookup table '/etc/postfix/transport'.."
postmap btree:/etc/postfix/transport > /dev/null 2> $log_file
if [[ $? -eq 0 ]] ; then
echo_ok
@@ -3863,7 +3861,7 @@ EOF
error "$(cat $log_file)"
fi
echononl "Create script '/usr/local/bin/dmarc-collect.sh'.."
echononl " Create script '/usr/local/bin/dmarc-collect.sh'.."
tee /usr/local/bin/dmarc-collect.sh > /dev/null 2> $log_file <<'EOF'
#!/usr/bin/env bash
set -euo pipefail
@@ -3921,7 +3919,7 @@ EOF
fi
_failed=false
echononl "Set permissions for '/usr/local/bin/dmarc-collect.sh'.."
echononl " Set permissions for '/usr/local/bin/dmarc-collect.sh'.."
chown vmail:vmail /usr/local/bin/dmarc-collect.sh > /dev/null 2> $log_file
if [[ $? -ne 0 ]] ; then
_failed=true