diff --git a/newSrv.sh b/newSrv.sh index f20f8d6..d72102a 100644 --- a/newSrv.sh +++ b/newSrv.sh @@ -225,6 +225,11 @@ echo Now running "$FUNCNAME" apt-file update + + +curl --silent https://dl.knownelement.com/FetchApplyDistPoint/postfix_canonicalf > /etc/postfix/canonical +postmap /etc/postfix/canonical + MAIL_HOST="$(hostname -f)" debconf-set-selections <<< "postfix postfix/mailname string $MAIL_HOST" debconf-set-selections <<< "postfix postfix/main_mailer_type string Internet with smarthost" @@ -232,6 +237,8 @@ debconf-set-selections <<< "postfix postfix/relayhost string pfv-netboot.taile30 postconf -e "inet_protocols = ipv4" postconf -e "inet_interfaces = 127.0.0.1" postconf -e "mydestination= 127.0.0.1" +postconf -e "canonical_maps = hash:/etc/postfix/canonical" + chsh -s $(which zsh) root diff --git a/postfix_canonical b/postfix_canonical new file mode 100644 index 0000000..99454f6 --- /dev/null +++ b/postfix_canonical @@ -0,0 +1 @@ +root coo@turnsys.com \ No newline at end of file