From 7237f553a4fdce2b337bc25e8ca8fc8e8bb057e9 Mon Sep 17 00:00:00 2001 From: downtownallday Date: Wed, 10 Jun 2020 22:37:24 -0400 Subject: [PATCH] Revert: still get host not found from postfix (type=A vs type=AAAA) for PRIMARY_HOSTNAME --- setup/mail-postfix.sh | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/setup/mail-postfix.sh b/setup/mail-postfix.sh index e8fdc263..91dc30be 100755 --- a/setup/mail-postfix.sh +++ b/setup/mail-postfix.sh @@ -61,16 +61,6 @@ tools/editconf.py /etc/postfix/main.cf \ myhostname=$PRIMARY_HOSTNAME\ smtpd_banner="\$myhostname ESMTP Hi, I'm a Mail-in-a-Box (Ubuntu/Postfix; see https://mailinabox.email/)" \ mydestination=localhost - -# when ipv6 is disabled on the loopback adapter and a mail message -# delivery attempt fails because the recipient doesn't exist, postfix -# returns reason "Host or domain name not found. Name service error -# for name=abc.com type=AAAA: Host not found", instead of the actual -# reason "User doesn't exist." The sysadmin's intent is probably that -# ipv6 is not desired at all, so disable ipv6. -if kernel_ipv6_lo_disabled; then - tools/editconf.py /etc/postfix/main.cf inet_protocols=ipv4 -fi # Tweak some queue settings: # * Inform users when their e-mail delivery is delayed more than 3 hours (default is not to warn).