Seperated Postfix into submodule

This commit is contained in:
2020-10-14 15:04:50 +02:00
parent 0cb3113ede
commit b475a7f365
8 changed files with 25 additions and 21 deletions

View File

@@ -0,0 +1 @@
mailutils

View File

@@ -0,0 +1,14 @@
##-------------##
# 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

View File

@@ -0,0 +1 @@
postfix

View File

@@ -0,0 +1,2 @@
debconf-set-selections <<< "postfix postfix/mailname string $domain"
debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Internet Site'"