diff --git a/README.md b/README.md index 09845dd..0b0423a 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,3 @@ You can select via the variable `postfix_type` a pre-defined set of configuraion | `postfix_smtp_sasl_auth_relay` | string | | Relay server which provides SASL-Auth | | `postfix_smtp_sasl_auth_user` | string | | Username for SASL authentication | | `postfix_smtp_sasl_auth_password` | string | | Password for SASL authenticatio | -| `smtp_sasl_password_maps.type` | string | | Database type | -| `smtp_sasl_password_maps.path` | string | | File path | - diff --git a/templates/postfix/main.cf.j2 b/templates/postfix/main.cf.j2 index 5fca90e..192f0bc 100644 --- a/templates/postfix/main.cf.j2 +++ b/templates/postfix/main.cf.j2 @@ -158,12 +158,7 @@ smtpd_sasl_exceptions_networks = {{ postfix_smtpd_sasl_exceptions_networks | joi ### SMTP Auth client side smtp_sasl_auth_enable = yes smtp_sasl_auth_soft_bounce = no -{% if postfix_smtp_sasl_password_maps is defined %} -smtp_sasl_password_maps = -{% for map in postfix_smtp_sasl_password_maps %} - {{ map.type }}:{{ map.path }} -{% endfor %} -{% endif %} +smtp_sasl_password_maps = cdb:{{ postfix_conf_dir }}/smtp_sasl_auth_password smtp_sasl_security_options = noanonymous {% endif %}