mirror of
https://github.com/opnsense/plugins.git
synced 2026-06-03 13:59:06 -04:00
mail/rspamd: add map's tp phishing and helptext (#637)
* Update settings.xml
* Update RSpamd.xml
* Update settings.xml
* Update RSpamd.xml
* Update phishing.conf
* Update phishing.conf
* Update settings.xml
* Update RSpamd.xml
* Update phishing.conf
* Update phishing.conf
(cherry picked from commit 1c0ce63da1)
This commit is contained in:
parent
ba44871888
commit
520e168e78
3 changed files with 27 additions and 0 deletions
|
|
@ -147,16 +147,31 @@
|
|||
<id>rspamd.phishing.openphish_enabled</id>
|
||||
<label>Enable Openphish</label>
|
||||
<type>checkbox</type>
|
||||
<help>Openphish is a service where phishing URLs get collected and asked by rspamd.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>rspamd.phishing.openphish_map</id>
|
||||
<label>Openphish Map</label>
|
||||
<type>text</type>
|
||||
<help>Set the URL of the Openphish map file.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>rspamd.phishing.openphish_premium_enabled</id>
|
||||
<label>Enable Openphish Premium</label>
|
||||
<type>checkbox</type>
|
||||
<help>Openphish Premium offers more services, please only activate if you have a current license.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>rspamd.phishing.phishtank_enabled</id>
|
||||
<label>Enable Phishtank</label>
|
||||
<type>checkbox</type>
|
||||
<help>Enable Phishtank collaborative clearing house for data and information about phishing on the Internet.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>rspamd.phishing.phishtank_map</id>
|
||||
<label>Phishtank Map URL</label>
|
||||
<type>text</type>
|
||||
<help>Give a URL where to retrieve the Phishtank feed.</help>
|
||||
</field>
|
||||
</subtab>
|
||||
<subtab id="rspamd-anti-spam-rate-limit" description="Rate Limit">
|
||||
|
|
|
|||
|
|
@ -126,6 +126,10 @@
|
|||
<default>0</default>
|
||||
<Required>Y</Required>
|
||||
</openphish_enabled>
|
||||
<openphish_map type="TextField">
|
||||
<default></default>
|
||||
<Required>N</Required>
|
||||
</openphish_map>
|
||||
<openphish_premium_enabled type="BooleanField">
|
||||
<default>0</default>
|
||||
<Required>Y</Required>
|
||||
|
|
@ -134,6 +138,10 @@
|
|||
<default>0</default>
|
||||
<Required>Y</Required>
|
||||
</phishtank_enabled>
|
||||
<phishtank_map type="TextField">
|
||||
<default></default>
|
||||
<Required>N</Required>
|
||||
</phishtank_map>
|
||||
</phishing>
|
||||
|
||||
<rate_limit>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,11 @@
|
|||
#
|
||||
{% if helpers.exists('OPNsense.Rspamd.general.enabled') and OPNsense.Rspamd.general.enabled == '1' and helpers.exists('OPNsense.Rspamd.phishing') %}
|
||||
openphish_enabled = {% if helpers.exists('OPNsense.Rspamd.phishing.openphish_enabled') and OPNsense.Rspamd.phishing.openphish_enabled == '1' %}true{% else %}false{% endif %};
|
||||
{% if helpers.exists('OPNsense.Rspamd.phishing.openphish_map') and OPNsense.Rspamd.phishing.openphish_map != '' %}openphish_map = "{{ OPNsense.Rspamd.phishing.openphish_map }}";{% endif %}
|
||||
|
||||
openphish_premium = {% if helpers.exists('OPNsense.Rspamd.phishing.openphish_premium_enabled') and OPNsense.Rspamd.phishing.openphish_premium_enabled == '1' %}true{% else %}false{% endif %};
|
||||
# Disabled by default
|
||||
phishtank_enabled = {% if helpers.exists('OPNsense.Rspamd.phishing.phishtank_enabled') and OPNsense.Rspamd.phishing.phishtank_enabled == '1' %}true{% else %}false{% endif %};
|
||||
{% if helpers.exists('OPNsense.Rspamd.phishing.phishtank_map') and OPNsense.Rspamd.phishing.phishtank_map != '' %}phishtank_map = "{{ OPNsense.Rspamd.phishing.phishtank_map }}";{% endif %}
|
||||
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue