From 85b455bd3c61b03025860de830194a8501d0ddbf Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Fri, 23 Nov 2018 14:01:48 +0100
Subject: [PATCH] WIP.

---
 all_new_2018/setup_mail.sh | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/all_new_2018/setup_mail.sh b/all_new_2018/setup_mail.sh
index 29ea604..0415717 100755
--- a/all_new_2018/setup_mail.sh
+++ b/all_new_2018/setup_mail.sh
@@ -2,9 +2,10 @@
 set -e
 
 echo "postfix postfix/main_mailer_type string 'Internet Site'" | debconf-set-selections
-echo "postfix postfix/mailname string $(hostname -f)" | debconf-set-selections
-apt install postfix
+#echo "postfix postfix/mailname string $(hostname -f)" | debconf-set-selections
+echo "$(hostname -f)" > /etc/mailname
+apt install -y postfix
 mkdir -p /etc/dovecot/conf.d/
 echo "ssl_cert = </etc/letsencrypt/live/$(hostname -f)/fullchain.pem" > /etc/dovecot/conf.d/99-ssl-certs.conf
 echo "ssl_key = </etc/letsencrypt/live/$(hostname -f)/privkey.pem" >> /etc/dovecot/conf.d/99-ssl-certs.conf
-apt install dovecot-imapd
+apt install -y dovecot-imapd
-- 
2.30.2