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:
27
SubModules/postfix/CMSHook-preconf.sh
Normal file
27
SubModules/postfix/CMSHook-preconf.sh
Normal 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
|
||||
Reference in New Issue
Block a user