Hi,
Some one can tell me how can I configure scalix alerts?
Thanks
Moderators: ScalixSupport, admin

Code: Select all
*/2 * * * * /etc/smtptest > /dev/null 2>&1Code: Select all
aborttest=`/opt/scalix/bin/omstat -a|grep -v Started|grep -v Structure|wc`
abortdata=`/opt/scalix/bin/omstat -a|grep -v Started|grep -v Structure`
aborttest2=`/opt/scalix/bin/omstat -s|grep -v Enabled|grep -v Started|wc`
abortdata2=`/opt/scalix/bin/omstat -s|grep -v Enabled|grep -v Started`
noabort=`/opt/scalix/bin/omstat -s|grep notaborted|wc`
if [ "$aborttest" != "$noabort" ]
then
/opt/scalix/bin/omoff -d0 -w smtpd
sleep 5
/opt/scalix/bin/omon smtpd unix
echo $abortdata | mail -s "Server ABORTED" support@mydomain.com
else
echo "All is running smoothly."
fi
if [ "$aborttest2" != "$noabort" ]
then
/opt/scalix/bin/omoff -d0 -w pop3 unix
sleep 5
/opt/scalix/bin/omon pop3 unix
echo $abortdata2 | mail -s "Server ABORTED" support@mydomain.com
else
echo "All is running smoothly."
fi
Users browsing this forum: No registered users and 13 guests