Seperated Postfix into submodule
This commit is contained in:
@@ -1,18 +1,3 @@
|
||||
##-------------##
|
||||
# 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
|
||||
echo "bounce_notice_recipient = info@$domain" >> /etc/postfix/main.cf
|
||||
cat <<EOF > /etc/aliases
|
||||
# See man 5 aliases for format
|
||||
postmaster: root
|
||||
root: $email
|
||||
EOF
|
||||
newaliases
|
||||
|
||||
##-------##
|
||||
# UFW #
|
||||
##-------##
|
||||
|
||||
@@ -1 +1 @@
|
||||
mailutils htop ufw nload fail2ban
|
||||
htop ufw nload fail2ban
|
||||
@@ -54,5 +54,3 @@ echo "vm.vfs_cache_pressure=50" >> /etc/sysctl.conf
|
||||
#Checking if postfix exists on this system and if so it wil be removed to prevent config conflicts
|
||||
if dpkg-query -Wf'${db:Status-abbrev}' postfix 2>/dev/null | grep -q '^i'; then apt purge -y postfix > $OUTPUT 2>&1; fi
|
||||
|
||||
debconf-set-selections <<< "postfix postfix/mailname string $domain"
|
||||
debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Internet Site'"
|
||||
Reference in New Issue
Block a user