Merge branch 'master' of https://git.oopen.de/install/mailsystem
This commit is contained in:
@@ -218,6 +218,9 @@ elif [[ "${os_dist,,}" = "debian" ]] && [[ "$os_version" -eq 11 ]] ; then
|
||||
elif [[ "${os_dist,,}" = "debian" ]] && [[ "$os_version" -eq 12 ]] ; then
|
||||
_needed_packages_clamav="$_needed_packages_clamav \
|
||||
libclamunrar11"
|
||||
elif [[ "${os_dist,,}" = "debian" ]] && [[ "$os_version" -eq 13 ]] ; then
|
||||
_needed_packages_clamav="$_needed_packages_clamav \
|
||||
libclamunrar12"
|
||||
else
|
||||
_needed_packages_clamav="$_needed_packages_clamav \
|
||||
libclamunrar13"
|
||||
@@ -233,7 +236,6 @@ _needed_decoders_amavis="
|
||||
cpio\
|
||||
lhasa \
|
||||
lzop \
|
||||
liblz4-tool \
|
||||
lrzip \
|
||||
melt \
|
||||
nomarch \
|
||||
@@ -250,6 +252,11 @@ _needed_decoders_amavis="
|
||||
unzip \
|
||||
zip "
|
||||
|
||||
if [[ "${os_dist,,}" = "debian" ]] && [[ "$os_version" -lt 12 ]] ; then
|
||||
_needed_decoders_amavis="$_needed_decoders_amavis \
|
||||
liblz4-tool"
|
||||
fi
|
||||
|
||||
if [[ "${os_dist,,}" = "debian" ]] && [[ "$os_version" -lt 10 ]] ; then
|
||||
_needed_decoders_amavis="$_needed_decoders_amavis \
|
||||
ripole \
|
||||
@@ -3934,7 +3941,7 @@ installation_failed=false
|
||||
_needed_cpan_modules="
|
||||
Digest::SHA1
|
||||
Digest::SHA2
|
||||
Digest::SHA256
|
||||
Digest::SHA
|
||||
Encode::Detect
|
||||
Net::Patricia"
|
||||
for _module in $_needed_cpan_modules ; do
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user