mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-05 01:11:41 -05:00
PR - rspamd phishing exclusion (#4204)
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -298,6 +298,9 @@
|
||||
<default></default>
|
||||
<Required>N</Required>
|
||||
</phishtank_map>
|
||||
<exclusion type="CSVListField">
|
||||
<Required>N</Required>
|
||||
</exclusion>
|
||||
</phishing>
|
||||
|
||||
<rate_limit>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 %}
|
||||
Reference in New Issue
Block a user