X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/cards/%7B%7Bcard_id%7D%7D/form?a=blobdiff_plain;f=all_new_2018%2Fsetup_mail.sh;h=18d7c310719bc5aea4b2eab8f83e15e2ebe9eba5;hb=6ebf7555f45713e31593ebf15c16624965b6c39f;hp=a2b4f987335e0cc4d7377017e233c3c2bda89c4e;hpb=06196e55c1d465d38ab97cdca1ad896e686b682b;p=config diff --git a/all_new_2018/setup_mail.sh b/all_new_2018/setup_mail.sh index a2b4f98..18d7c31 100755 --- a/all_new_2018/setup_mail.sh +++ b/all_new_2018/setup_mail.sh @@ -53,11 +53,16 @@ echo "ssl_key = > /etc/dovec echo "postfix postfix/mailname string ${mail_domain}" | debconf-set-selections echo "${mail_domain}" > /etc/mailname -# Everything should now be ready for installations. -apt install -y -o Dpkg::Options::=--force-confold postfix dovecot-imapd opendkim +# Everything should now be ready for installations. Note that we don't +# strictly need dovecot-lmtpd, as postfix will deliver mail to /var/mail/USER +# in any case, to be found by dovecot; we use it as a transport mechanism to +# allow for sophisticated stuff like dovecot-side sieve filtering (installed +# with dovecot-sieve). +apt install -y -o Dpkg::Options::=--force-confold postfix dovecot-imapd dovecot-lmtpd dovecot-sieve opendkim echo "TODO: Ensure MX entry for your system in your DNS configuration." echo "TODO: Ensure a proper SPF entry for this system in your DNS configuration; something like 'v=spf1 mx -all' mapped to your host." if [ "${add_dkim_record}" -eq "1" ]; then echo "TODO: Add the following DKIM entry to your DNS configuration (possibly with slightly changed host entry – if your mail domain includes a subdomain, append that with a dot):" cat "${dkim_selector}.txt" fi +echo "TODO: passwd plom"