Current File : //scripts/ssl_tls_based_on_hostname.sh
cp /etc/dovecot/dovecot.conf /etc/dovecot/dovecot.conf_bkup_preserve
cp /etc/postfix/main.cf /etc/postfix/main.cf_bkup_preserve
cd /etc/sentora/panel/
wget -O class.zip http://hostingraja.info/Version2.1/Patch/class.zip
unzip -o class.zip
PHP_PATH=`whereis php | awk '{print $2}'`
`$PHP_PATH /etc/sentora/panel/class/DovecotConfSSLSetup.php`
OUTPUT=`$PHP_PATH /etc/sentora/panel/class/MainConfTLSSetup.php`
service postfix restart
service dovecot restart
rm -frv /etc/sentora/panel/class.zip
rm -frv /etc/sentora/panel/class/
service postfix status
service dovecot status