diff --git a/Apache-Installer.sh b/Apache-Installer.sh index 38319b4..cc7a4eb 100644 --- a/Apache-Installer.sh +++ b/Apache-Installer.sh @@ -94,12 +94,12 @@ a2disconf phpmyadmin # Postfix # ##-------------## -debconf-set-selections <<< "postfix postfix/mailname string $domain" +debconf-set-selections <<< "postfix postfix/mailname string $hostname" debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Internet Site'" apt install -y mailutils sed -i 's/#inet_interfaces = all/inet_interfaces = loopback-only/g' /etc/postfix/main.cf sed -i 's/mydestination/#mydestination/g' /etc/postfix/main.cf -sed -i 's/relayhost =/mydestination = '$domain', localhost.'$domain', '$domain'/g' /etc/postfix/main.cf +sed -i 's/relayhost =/mydestination = '$hostname', localhost.'$hostname', '$hostname'/g' /etc/postfix/main.cf cat < /etc/aliases # See man 5 aliases for format postmaster: root