mail/postfix: add milter protocol selection (#1600)
This commit is contained in:
parent
a140582300
commit
9620b6f76e
|
@ -1,5 +1,5 @@
|
|||
PLUGIN_NAME= postfix
|
||||
PLUGIN_VERSION= 1.12
|
||||
PLUGIN_VERSION= 1.13
|
||||
PLUGIN_COMMENT= SMTP mail relay
|
||||
PLUGIN_DEPENDS= postfix-sasl
|
||||
PLUGIN_MAINTAINER= m.muenz@gmail.com
|
||||
|
|
|
@ -6,6 +6,11 @@ is completely different.
|
|||
Plugin Changelog
|
||||
================
|
||||
|
||||
|
||||
1.13
|
||||
|
||||
* Allow setting IP version for connecting to rspamd
|
||||
|
||||
1.12
|
||||
|
||||
* Fix sort order to put sender acces in front of recipient access
|
||||
|
|
|
@ -5,4 +5,10 @@
|
|||
<type>checkbox</type>
|
||||
<help>This will allow Postfix to connect to rspamd via milter protocol.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>antispam.milter_rspamd</id>
|
||||
<label>Milter IP Version</label>
|
||||
<type>dropdown</type>
|
||||
<help>Select the IP version for connecting to rspamd.</help>
|
||||
</field>
|
||||
</form>
|
||||
|
|
|
@ -1,11 +1,19 @@
|
|||
<model>
|
||||
<mount>//OPNsense/postfix/antispam</mount>
|
||||
<description>Postfix Antispam configuration</description>
|
||||
<version>1.0.0</version>
|
||||
<version>1.0.1</version>
|
||||
<items>
|
||||
<enable_rspamd type="BooleanField">
|
||||
<default>0</default>
|
||||
<Required>Y</Required>
|
||||
</enable_rspamd>
|
||||
<milter_rspamd type="OptionField">
|
||||
<default>6</default>
|
||||
<Required>Y</Required>
|
||||
<OptionValues>
|
||||
<Option1 value="6">IPv6</Option1>
|
||||
<Option2 value="4">IPv4</Option2>
|
||||
</OptionValues>
|
||||
</milter_rspamd>
|
||||
</items>
|
||||
</model>
|
||||
|
|
|
@ -117,7 +117,7 @@ smtp_sasl_security_options =
|
|||
{% if helpers.exists('OPNsense.postfix.antispam.enable_rspamd') and OPNsense.postfix.antispam.enable_rspamd == '1' %}
|
||||
smtpd_milters = inet:localhost:11332
|
||||
non_smtpd_milters = inet:localhost:11332
|
||||
milter_protocol = 6
|
||||
milter_protocol = {{ OPNsense.postfix.antispam.milter_rspamd }}
|
||||
milter_mail_macros = i {mail_addr} {client_addr} {client_name} {auth_authen}
|
||||
milter_default_action = accept
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue