added Postfix
This commit is contained in:
1 parent
637dd4e72b
commit
3c1ea6fe2a
1 file changed
+15
@@ -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 <<EOF > /etc/aliases
|
||||
# See man 5 aliases for format
|
||||
postmaster: root
|
||||
root: $email
|
||||
EOF
|
||||
newaliases
|
||||
|
||||
|
||||
##------------##
|
||||
# Fail2Ban #
|
||||
##------------##
|
||||
|
||||
Reference in new issue
Block a user