Files
VPS-scripts_Web-V2/CoreModules/generic/preconf.sh
2020-03-11 10:57:06 +01:00

9 lines
427 B
Bash

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