finally got postfix relay working reliably..
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user