PR - rspamd phishing exclusion (#4204)

This commit is contained in:
Makss39
2024-08-28 14:33:33 +02:00
committed by GitHub
parent 098a191c57
commit a5b4227c84
4 changed files with 17 additions and 0 deletions

View File

@@ -297,6 +297,14 @@
<type>text</type>
<help>Give a URL where to retrieve the Phishtank feed.</help>
</field>
<field>
<id>rspamd.phishing.exclusion</id>
<label>Exclusion</label>
<type>select_multiple</type>
<style>tokenize</style>
<allownew>true</allownew>
<help>The exclusion map should only contain a list of host names without a scheme and path.</help>
</field>
</subtab>
<subtab id="rspamd-anti-spam-rate-limit" description="Rate Limit">
<field>

View File

@@ -298,6 +298,9 @@
<default></default>
<Required>N</Required>
</phishtank_map>
<exclusion type="CSVListField">
<Required>N</Required>
</exclusion>
</phishing>
<rate_limit>

View File

@@ -13,6 +13,7 @@ surbl-whitelist.inc.local:/var/db/rspamd/surbl-whitelist.inc.local
greylist.conf:/usr/local/etc/rspamd/local.d/greylist.conf
greylist_ip.wl:/usr/local/etc/rspamd/local.d/greylist_ip.wl
phishing.conf:/usr/local/etc/rspamd/local.d/phishing.conf
phishing_whitelist.inc:/usr/local/etc/rspamd/local.d/phishing_whitelist.inc
milter_headers.conf:/usr/local/etc/rspamd/local.d/milter_headers.conf
multimap.conf:/usr/local/etc/rspamd/local.d/multimap.conf
mx_check.conf:/usr/local/etc/rspamd/local.d/mx_check.conf

View File

@@ -0,0 +1,5 @@
{% if helpers.exists('OPNsense.Rspamd.general.enabled') and OPNsense.Rspamd.general.enabled == '1' and helpers.exists('OPNsense.Rspamd.phishing.exclusion') and OPNsense.Rspamd.phishing.exclusion != '' %}
{% for sender in OPNsense.Rspamd.phishing.exclusion.split(',') %}
{{ sender }}
{% endfor %}
{% endif %}