@ -6,29 +6,6 @@ chmod 755 /var/lib/rspamd
|
|||||||
|
|
||||||
mkdir -p /etc/rspamd/custom
|
mkdir -p /etc/rspamd/custom
|
||||||
|
|
||||||
# Fix missing default global maps, if any
|
|
||||||
# These exists in UI and should not be removed
|
|
||||||
touch /etc/rspamd/custom/global_mime_from_blacklist.map \
|
|
||||||
/etc/rspamd/custom/global_rcpt_blacklist.map \
|
|
||||||
/etc/rspamd/custom/global_smtp_from_blacklist.map \
|
|
||||||
/etc/rspamd/custom/global_smtp_domain_blacklist.map \
|
|
||||||
/etc/rspamd/custom/global_ip_blacklist.map \
|
|
||||||
/etc/rspamd/custom/global_mime_from_whitelist.map \
|
|
||||||
/etc/rspamd/custom/global_rcpt_whitelist.map \
|
|
||||||
/etc/rspamd/custom/global_smtp_domain_whitelist.map \
|
|
||||||
/etc/rspamd/custom/global_smtp_from_whitelist.map \
|
|
||||||
/etc/rspamd/custom/global_ip_whitelist.map \
|
|
||||||
/etc/rspamd/custom/bad_languages.map \
|
|
||||||
/etc/rspamd/custom/sa-rules \
|
|
||||||
/etc/rspamd/custom/rspamd_trusted.map \
|
|
||||||
/etc/rspamd/custom/mailcow_networks.map \
|
|
||||||
/etc/rspamd/custom/fishy_tlds.map \
|
|
||||||
/etc/rspamd/custom/bad_words.map \
|
|
||||||
/etc/rspamd/custom/bad_asn.map \
|
|
||||||
/etc/rspamd/custom/bad_words_de.map \
|
|
||||||
/etc/rspamd/custom/bulk_header.map \
|
|
||||||
/etc/rspamd/custom/bad_header.map
|
|
||||||
|
|
||||||
# If DQS KEY is set in mailcow.conf add Spamhaus DQS RBLs
|
# If DQS KEY is set in mailcow.conf add Spamhaus DQS RBLs
|
||||||
if [[ ! -z ${SPAMHAUS_DQS_KEY} ]]; then
|
if [[ ! -z ${SPAMHAUS_DQS_KEY} ]]; then
|
||||||
cat <<EOF >/etc/rspamd/custom/dqs-rbl.conf
|
cat <<EOF >/etc/rspamd/custom/dqs-rbl.conf
|
||||||
|
Reference in New Issue
Block a user