mail/postfix: add milter protocol selection (#1600)

This commit is contained in:
Michael 2019-12-01 15:56:35 +01:00 committed by Franco Fichtner
parent a140582300
commit 9620b6f76e
5 changed files with 22 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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>

View File

@ -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>

View File

@ -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 %}