Explorar el Código

Enabling Postfix SMTP authentication

merge-requests/1/merge
Christoph Haas hace 10 años
padre
commit
ce99deae5f
Se han modificado 1 ficheros con 27 adiciones y 0 borrados
  1. +27
    -0
      roles/ispmail-postfix/tasks/main.yml

+ 27
- 0
roles/ispmail-postfix/tasks/main.yml Ver fichero

@@ -40,3 +40,30 @@
- name: Restricting delivery to Dovecot to one email at a time
shell: postconf dovecot_destination_recipient_limit=1

- name: Setting SMTP authentication type to dovecot
shell: postconf smtpd_sasl_type=dovecot

- name: Setting SMTP authentication path/socket
shell: postconf smtpd_sasl_path=private/auth

- name: Enabling SMTP authentication
shell: postconf smtpd_sasl_auth_enable=yes

- name: Setting SMTP encryption security level
shell: postconf smtpd_tls_security_level=may

- name: Setting SMTP encryption security level
shell: postconf smtpd_tls_security_level=may

- name: Enforce SMTP encryption
shell: postconf smtpd_tls_auth_only=yes

- name: Set TLS encryption certificate
shell: postconf smtpd_tls_cert_file=/etc/ssl/certs/mailserver.pem

- name: Set TLS encryption key
shell: postconf smtpd_tls_key_file=/etc/ssl/private/mailserver.pem

- name: Enabling SMTP authentication during the SMTP protocol
shell: postconf smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination


Cargando…
Cancelar
Guardar