From 3c1ea6fe2aeeb7c3663acdd5f0a3e0190275f6b0 Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Wed, 11 Mar 2020 10:57:47 +0100 Subject: [PATCH] added Postfix --- CoreModules/generic/conf.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/CoreModules/generic/conf.sh b/CoreModules/generic/conf.sh index f0a6d11..8cb9c24 100644 --- a/CoreModules/generic/conf.sh +++ b/CoreModules/generic/conf.sh @@ -1,3 +1,18 @@ +##-------------## +# Postfix # +##-------------## + +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 = '$hostname', localhost.'$hostname', '$hostname'/g' /etc/postfix/main.cf +cat < /etc/aliases +# See man 5 aliases for format +postmaster: root +root: $email +EOF +newaliases + + ##------------## # Fail2Ban # ##------------##