home · contact · privacy
Change directory structure and between-script path references.
[config] / all_new_2018 / setup_scripts / setup_sendonly.sh
1 #!/bin/sh
2 # This sets up the minimum of a mail server necessary to send out mails
3 # to the world.
4 set -e
5
6 config_tree_prefix="${HOME}/config/all_new_2018"
7 setup_scripts_dir="${config_tree_prefix}/setup_scripts"
8 cd "${setup_scripts_dir}"
9
10 ./hardlink_etc.sh sendonly
11 echo "postfix postfix/main_mailer_type string 'Internet Site'" | debconf-set-selections
12 echo "postfix postfix/mailname string $(hostname -f)" | debconf-set-selections
13 echo "$(hostname -f)" > /etc/mailname
14 apt install -y postfix