remove rspamd whitelist, never used it

This commit is contained in:
Chang, Chu-Kuan 2021-06-06 15:28:08 +08:00
parent 3f7ec821ff
commit 062f3481c0
1 changed files with 0 additions and 67 deletions

View File

@ -358,73 +358,6 @@ actions {
EOF EOF
printf '%s: Configuring Rspamd black/whitelist (multimap.conf)...\n' "${progname}"
for x in 'local_bl_from.map.inc' 'local_bl_ip.map.inc' 'local_bl_rcpt.map.inc' \
'local_wl_from.map.inc' 'local_wl_ip.map.inc' 'local_wl_rcpt.map.inc'; do
touch "/etc/rspamd/local.d/$x"
chmod 666 "/etc/rspamd/local.d/$x"
done
cat << EOF > /etc/rspamd/local.d/multimap.conf
#
# Blacklists
#
local_bl_ip {
type = "ip";
map = "\$LOCAL_CONFDIR/local.d/local_bl_ip.map.inc";
symbol = "LOCAL_BL_IP";
description = "Local ip blacklist";
score = 5;
}
local_bl_from {
type = "from";
map = "\$LOCAL_CONFDIR/local.d/local_bl_from.map.inc";
symbol = "LOCAL_BL_FROM";
description = "Local from blacklist";
score = 5;
}
local_bl_rcpt {
type = "rcpt";
map = "\$LOCAL_CONFDIR/local.d/local_bl_rcpt.map.inc";
symbol = "LOCAL_BL_RCPT";
description = "Local rcpt blacklist";
score = 5;
}
#
# Whitelists
#
local_wl_ip {
type = "ip";
map = "\$LOCAL_CONFDIR/local.d/local_wl_ip.map.inc";
symbol = "LOCAL_WL_IP";
description = "Local ip whitelist";
score = -5;
}
local_wl_from {
type = "from";
map = "\$LOCAL_CONFDIR/local.d/local_wl_from.map.inc";
symbol = "LOCAL_WL_FROM";
description = "Local from whitelist";
score = -5;
}
local_wl_rcpt {
type = "rcpt";
map = "\$LOCAL_CONFDIR/local.d/local_wl_rcpt.map.inc";
symbol = "LOCAL_WL_RCPT";
description = "Local rcpt whitelist";
score = -5;
}
EOF
# #
# Configure opensmtpd-filter-dkimsign # Configure opensmtpd-filter-dkimsign
# #