From 6f0220da4bf846f281b853e4f8f831043a68a1a0 Mon Sep 17 00:00:00 2001 From: dofl Date: Wed, 20 Jan 2016 15:34:22 +0100 Subject: [PATCH] Update mail-postfix.sh Same result as maximal_queue_lifetime and bounce_queue_lifetime, but complies with rfc2821. --- setup/mail-postfix.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/setup/mail-postfix.sh b/setup/mail-postfix.sh index 3298bacc..1572e646 100755 --- a/setup/mail-postfix.sh +++ b/setup/mail-postfix.sh @@ -60,14 +60,13 @@ apt_install postfix postfix-pcre postgrey ca-certificates # * Set our name (the Debian default seems to be "localhost" but make it our hostname). # * Set the name of the local machine to localhost, which means xxx@localhost is delivered locally, although we don't use it. # * Set the SMTP banner (which must have the hostname first, then anything). -# * Set the default timeout for undeliverable e-mail to 1 day. The default is 5. +# * Set the delay_warning_time to 1 day. Informs users that their e-mail delivery is delayed. tools/editconf.py /etc/postfix/main.cf \ inet_interfaces=all \ myhostname=$PRIMARY_HOSTNAME\ smtpd_banner="\$myhostname ESMTP Hi, I'm a Mail-in-a-Box (Ubuntu/Postfix; see https://mailinabox.email/)" \ mydestination=localhost - maximal_queue_lifetime=1d - bounce_queue_lifetime=1d + delay_warning_time=1d # ### Outgoing Mail