#!/bin/bash

# cpanel check

if ! [ -f "/usr/local/cpanel/cpanel" ]; then
       echo "No cpanel"
       exit
fi

if egrep -q 'mx.newsprout.com.au|ucebox.co.za|spambox.co.za' /etc/{exim.conf,exim.conf.local,exim.conf.localopts} 2>/dev/null ; then 
                echo "INFO: Outbound mail from this server is routing through ucebox "
        else 
                echo "INFO: Outbound mail is routing through the servers IP"
fi

