mail/postfix: allow setting of supported IP protocols (#1493)

This commit is contained in:
Michael
2019-09-11 13:16:43 +02:00
committed by Franco Fichtner
parent ed9a594209
commit 85ff6ca821
5 changed files with 22 additions and 3 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
PLUGIN_NAME= postfix
PLUGIN_VERSION= 1.10
PLUGIN_VERSION= 1.11
PLUGIN_COMMENT= SMTP mail relay
PLUGIN_DEPENDS= postfix-sasl
PLUGIN_MAINTAINER= m.muenz@gmail.com
+4
View File
@@ -6,6 +6,10 @@ is completely different.
Plugin Changelog
================
1.11
* Allow suport for v4 or v6 only or both
1.10
* Add support for configuring sender_canonical_maps
@@ -35,6 +35,12 @@
<type>text</type>
<help>Port to listen on.</help>
</field>
<field>
<id>general.ip_version</id>
<label>IP Version</label>
<type>dropdown</type>
<help>Choose which IP versions are allowed, defaults to all.</help>
</field>
<field>
<id>general.bind_address</id>
<label>Bind SMTP Client Address</label>
@@ -1,7 +1,7 @@
<model>
<mount>//OPNsense/postfix/general</mount>
<description>Postfix configuration</description>
<version>1.2.3</version>
<version>1.2.4</version>
<items>
<enabled type="BooleanField">
<default>0</default>
@@ -27,6 +27,15 @@
<default>25</default>
<Required>Y</Required>
</inet_port>
<ip_version type="OptionField">
<default>all</default>
<Required>Y</Required>
<OptionValues>
<all>All</all>
<ipv4>IPv4</ipv4>
<ipv6>IPv6</ipv6>
</OptionValues>
</inet_protocol>
<bind_address type="NetworkField">
<Required>N</Required>
<AddressFamily>ipv4</AddressFamily>
@@ -26,7 +26,7 @@ html_directory = no
manpage_directory = /usr/local/man
sample_directory = /usr/local/etc/postfix
readme_directory = no
inet_protocols = all
inet_protocols = {{ OPNsense.postfix.general.ip_version }}
meta_directory = /usr/local/libexec/postfix
shlib_directory = /usr/local/lib/postfix
relay_domains = hash:/usr/local/etc/postfix/transport