home · contact · privacy
WIP.
[config] / all_new_2018 / setup_mail.sh
1 #/bin/sh
2 set -e
3
4 echo "postfix postfix/main_mailer_type string 'Internet Site'" | debconf-set-selections
5 #echo "postfix postfix/mailname string $(hostname -f)" | debconf-set-selections
6 echo "$(hostname -f)" > /etc/mailname
7 apt install -y postfix
8 mkdir -p /etc/dovecot/conf.d/
9 echo "ssl_cert = </etc/letsencrypt/live/$(hostname -f)/fullchain.pem" > /etc/dovecot/conf.d/99-ssl-certs.conf
10 echo "ssl_key = </etc/letsencrypt/live/$(hostname -f)/privkey.pem" >> /etc/dovecot/conf.d/99-ssl-certs.conf
11 apt install -y dovecot-imapd