From 47b5596dc549910282cffe0f31e0fa55b8375715 Mon Sep 17 00:00:00 2001 From: bprieshof Date: Wed, 20 Mar 2019 12:24:59 +0100 Subject: [PATCH] Update 'NGINX-Installer.sh' --- NGINX-Installer.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NGINX-Installer.sh b/NGINX-Installer.sh index f5f7f91..f712891 100644 --- a/NGINX-Installer.sh +++ b/NGINX-Installer.sh @@ -192,12 +192,12 @@ ln -s /usr/share/phpmyadmin /var/www/"$domain"/html/database # 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