added CMSHook for postfix module and updated conf

CMSHook wil be inplemented so CMS releated Module configuration,
this wil be loaded when using appendCMS and the main intaller
This commit is contained in:
2021-02-04 15:25:57 +01:00
parent 8dfef7c493
commit 9c36d12d52
6 changed files with 78 additions and 27 deletions

View File

@@ -0,0 +1,27 @@
if [ -z "${sitename}" ]; then sitename=${domain//./_};fi
if [ $IMODE = n ]; then
if (whiptail --title "Config" --yesno " Send mail as info@$domain of $domain" 11 78); then
mailas=info@$domain
maildomain=$domain
else
mailas=$(whiptail --nocancel --inputbox " Enter mail addres for sending mail" 11 78 --title "Config" 3>&1 1>&2 2>&3)
sed -e 's/[^@]*@//' <<< "$mail"
fi
fi
if [ $IMODE = l ]; then
while true; do
read -p "Hostname with nxdi.nl -> yes/no?" yn
case $yn in
[Yy]* )
mailas=info@$domain
maildomain=$domain
break;;
[Nn]* )
echo 'Enter full hostname:'
read hostname
break;;
* )echo "Choose yes or no.";;
esac
done
fi