Posfix: enable smtpd_sasl_auth when permit_sasl_authenticated is sele… (#1957)

This commit is contained in:
fhloston
2020-09-18 12:17:11 +02:00
committed by GitHub
parent bacea2cdc8
commit 7adcd31035
2 changed files with 5 additions and 0 deletions
@@ -212,6 +212,7 @@
<id>general.permit_sasl_authenticated</id>
<label>Permit SASL Authenticated</label>
<type>checkbox</type>
<help>Allow SASL authenticated senders to relay. Will also enable smtpd_sasl_auth.</help>
</field>
<field>
<id>general.permit_tls_clientcerts</id>
@@ -116,6 +116,10 @@ smtp_sasl_password_maps = hash:/usr/local/etc/postfix/smtp_auth
smtp_sasl_security_options =
{% endif %}
{% if helpers.exists('OPNsense.postfix.general.permit_sasl_authenticated') and OPNsense.postfix.general.permit_sasl_authenticated == '1' %}
smtpd_sasl_auth_enable = yes
{% endif %}
{% 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