瀏覽代碼

Enabling Postfix SMTP authentication

merge-requests/1/merge
Christoph Haas 10 年之前
父節點
當前提交
ce99deae5f
共有 1 個檔案被更改,包括 27 行新增0 行删除
  1. +27
    -0
      roles/ispmail-postfix/tasks/main.yml

+ 27
- 0
roles/ispmail-postfix/tasks/main.yml 查看文件

@@ -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


Loading…
取消
儲存