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