From 08b125c579ecc44ba64c1fa03d8f3285adf43ace Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Tue, 31 Jan 2023 06:25:03 +0200 Subject: [PATCH] fix networks --- defaults/main.yml | 2 +- files/update_clients.sh | 2 +- tasks/configure.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index d36430d..e6aabd7 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -61,7 +61,7 @@ postfix_config: # Block clients that speak too early. smtpd_data_restrictions: reject_unauth_pipelining # Don't talk to mail systems that don't know their own hostname. - smtpd_helo_restrictions: reject_unknown_helo_hostname + smtpd_helo_restrictions: permit_mynetworks reject_unknown_helo_hostname smtpd_recipient_restrictions: permit_mynetworks, permit_sasl_authenticated, permit_auth_destination, reject_unauth_destination, check_policy_service unix:private/policy-spf smtpd_relay_restrictions: permit_mynetworks permit_sasl_authenticated defer_unauth_destination smtpd_sasl_auth_enable: 'yes' diff --git a/files/update_clients.sh b/files/update_clients.sh index 4ab9132..b22265c 100644 --- a/files/update_clients.sh +++ b/files/update_clients.sh @@ -1,6 +1,6 @@ #!/bin/bash -declare clients=( hiljainen.susurrando.com deu1.susurrando.com adpvm01.susurrando.com adpvm02.susurrando.com adpvm03.susurrando.com adpvm04.susurrando.com) +declare clients=( hiljainen.susurrando.com ) rm /etc/postfix/allowed_clients touch /etc/postfix/allowed_clients diff --git a/tasks/configure.yml b/tasks/configure.yml index 4c1d8c0..af7cf67 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -198,7 +198,7 @@ path: /etc/postfix/allowed_clients owner: root group: postfix - mode: 0640 + mode: 0644 - name: Create local aliases ansible.builtin.lineinfile: