From 637dd4e72bb23ce996f1d81ab6f412c5baf1aeb6 Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Wed, 11 Mar 2020 10:57:06 +0100 Subject: [PATCH] Add 'CoreModules/generic/preconf.sh' --- CoreModules/generic/preconf.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 CoreModules/generic/preconf.sh diff --git a/CoreModules/generic/preconf.sh b/CoreModules/generic/preconf.sh new file mode 100644 index 0000000..870b252 --- /dev/null +++ b/CoreModules/generic/preconf.sh @@ -0,0 +1,9 @@ +##-------------## +# Postfix # +##-------------## + +#cheking if postfix already was installed by the system and if yes 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; fi + +debconf-set-selections <<< "postfix postfix/mailname string $domain" +debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Internet Site'" \ No newline at end of file