From f3f0b98755a3233c0d788be0819aabe6baa30b60 Mon Sep 17 00:00:00 2001 From: kaiyou Date: Sun, 7 Oct 2018 01:28:22 +0200 Subject: [PATCH] Fix relay restrictions so email gets delivered correctly --- core/postfix/conf/main.cf | 5 +++-- core/postfix/conf/master.cf | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/core/postfix/conf/main.cf b/core/postfix/conf/main.cf index 43a41fe7..2f389069 100644 --- a/core/postfix/conf/main.cf +++ b/core/postfix/conf/main.cf @@ -2,6 +2,8 @@ # General ############### +debug_peer_list = 0.0.0.0/0 + # Main domain and hostname mydomain = {{ DOMAIN }} myhostname = {{ HOSTNAMES.split(",")[0] }} @@ -85,7 +87,6 @@ smtpd_helo_required = yes smtpd_client_restrictions = permit_mynetworks, - reject_unauth_destination, reject_non_fqdn_sender, reject_unknown_sender_domain, reject_unknown_recipient_domain, @@ -95,7 +96,7 @@ smtpd_client_restrictions = smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, - reject + reject_unauth_destination unverified_recipient_reject_reason = Address lookup failure diff --git a/core/postfix/conf/master.cf b/core/postfix/conf/master.cf index 661a02f1..5fee327f 100644 --- a/core/postfix/conf/master.cf +++ b/core/postfix/conf/master.cf @@ -7,7 +7,7 @@ smtp inet n - n - - smtpd # Internal SMTP service 10025 inet n - n - - smtpd -o smtpd_sasl_auth_enable=yes - -o smtpd_client_restrictions=reject_unlisted_sender,reject_unauth_destination,reject_authenticated_sender_login_mismatch,permit + -o smtpd_client_restrictions=reject_unlisted_sender,reject_authenticated_sender_login_mismatch,permit -o cleanup_service_name=outclean outclean unix n - n - 0 cleanup -o header_checks=pcre:/etc/postfix/outclean_header_filter.cf