From 4ebc4f306971603718e861fb554fea7bab1fac7e Mon Sep 17 00:00:00 2001 From: link2xt Date: Sat, 13 Jul 2024 02:39:59 +0000 Subject: [PATCH] postfix: do not lookup client hostnames --- cmdeploy/src/cmdeploy/postfix/main.cf.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmdeploy/src/cmdeploy/postfix/main.cf.j2 b/cmdeploy/src/cmdeploy/postfix/main.cf.j2 index 21c869ea..aacf85cf 100644 --- a/cmdeploy/src/cmdeploy/postfix/main.cf.j2 +++ b/cmdeploy/src/cmdeploy/postfix/main.cf.j2 @@ -77,3 +77,7 @@ mua_helo_restrictions = permit_mynetworks, reject_invalid_helo_hostname, reject_ # 1:1 map MAIL FROM to SASL login name. smtpd_sender_login_maps = regexp:/etc/postfix/login_map + +# Do not lookup SMTP client hostnames to reduce delays +# and avoid unnecessary DNS requests. +smtpd_peername_lookup = no