finally got postfix relay working reliably..

This commit is contained in:
2025-06-24 11:34:28 -05:00
parent f8bc62b329
commit 39c7e4d36f
2 changed files with 8 additions and 0 deletions

View File

@@ -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