mail/postfix: add portfield to postfix (#879)

This commit is contained in:
Michael 2018-09-30 09:22:04 +02:00 committed by Franco Fichtner
parent c33f32990e
commit 788f449efd
4 changed files with 13 additions and 3 deletions

View file

@ -1,5 +1,5 @@
PLUGIN_NAME= postfix
PLUGIN_VERSION= 1.5
PLUGIN_VERSION= 1.6
PLUGIN_COMMENT= SMTP mail relay
PLUGIN_DEPENDS= postfix-sasl
PLUGIN_MAINTAINER= m.muenz@gmail.com

View file

@ -29,6 +29,12 @@
<type>text</type>
<help>The 'Listen IPs' parameter specifies the IP address to listen to. Default is to listen on all interfaces.</help>
</field>
<field>
<id>general.inet_port</id>
<label>Listen Port</label>
<type>text</type>
<help>Port to listen on.</help>
</field>
<field>
<id>general.bind_address</id>
<label>Bind SMTP Client Address</label>

View file

@ -1,7 +1,7 @@
<model>
<mount>//OPNsense/postfix/general</mount>
<description>Postfix configuration</description>
<version>1.2.1</version>
<version>1.2.2</version>
<items>
<enabled type="BooleanField">
<default>0</default>
@ -23,6 +23,10 @@
<default>all</default>
<Required>Y</Required>
</inet_interfaces>
<inet_port type="PortField">
<default>25</default>
<Required>Y</Required>
</inet_port>
<bind_address type="NetworkField">
<Required>N</Required>
<AddressFamily>ipv4</AddressFamily>

View file

@ -10,7 +10,7 @@
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (no) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd
{{ OPNsense.postfix.general.inet_port }} inet n - n - - smtpd
#smtp inet n - n - 1 postscreen
#smtpd pass - - n - - smtpd
#dnsblog unix - - n - 0 dnsblog