home
·
contact
·
privacy
projects
/
config
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
51ebb6a
)
WIP.
author
Christian Heller
<c.heller@plomlompom.de>
Fri, 23 Nov 2018 13:01:48 +0000
(14:01 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Fri, 23 Nov 2018 13:01:48 +0000
(14:01 +0100)
all_new_2018/setup_mail.sh
patch
|
blob
|
history
diff --git
a/all_new_2018/setup_mail.sh
b/all_new_2018/setup_mail.sh
index 29ea6041e3a6358a11e5720f419fcc457c6bf45d..0415717741b1f73e314f370fee24866a7c86267a 100755
(executable)
--- 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
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
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