1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-30 21:07:23 +02:00

Attempt at dealing with disabled ipv6 on interfaces

This commit is contained in:
downtownallday
2020-06-10 21:56:49 -04:00
parent adf7d3ed8d
commit ae5fbffa40
3 changed files with 26 additions and 6 deletions

View File

@@ -62,6 +62,16 @@ tools/editconf.py /etc/postfix/main.cf \
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).
# * Stop trying to send an undeliverable e-mail after 2 days (instead of 5), and for bounce messages just try for 1 day.