mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
Posfix: enable smtpd_sasl_auth when permit_sasl_authenticated is sele… (#1957)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user