diff options
Diffstat (limited to 'ansible/roles/mail-server/templates/postfix.main.cf.j2')
-rw-r--r-- | ansible/roles/mail-server/templates/postfix.main.cf.j2 | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ansible/roles/mail-server/templates/postfix.main.cf.j2 b/ansible/roles/mail-server/templates/postfix.main.cf.j2 index 80cd00e..8e08ed9 100644 --- a/ansible/roles/mail-server/templates/postfix.main.cf.j2 +++ b/ansible/roles/mail-server/templates/postfix.main.cf.j2 @@ -7,7 +7,7 @@ mydestination = {{ mail_hostname }}, localhost.localdomain, localhost mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 inet_interfaces = all myorigin = /etc/mailname -relayhost = +relayhost = {{ smarthost }}:{{ smarthost_port }} alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases virtual_alias_maps = hash:/etc/postfix/virtual @@ -27,7 +27,12 @@ smtp_tls_security_level = may smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtp_tls_loglevel = 1 -# SASL authentication +# SASL authentication, outgoing mail. +smtp_sasl_auth_enable = yes +smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd +smtp_sasl_security_options = + +# SASL authentication, incoming mail. smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth smtpd_sasl_auth_enable = yes |