diff --git a/CHANGELOG b/CHANGELOG index b09ebe0..9b50831 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,6 @@ v1.6.2 | Jul 13 2017: [Fix] signature updates using get_Remote_file would incorrect write update files into /; issue #242 +[New] added support to send email through 'sendmail' binary as alternative to 'mail'; pr #241 & issue #238 v1.6.1 | May 28 2017: [New] added conf.maldet option cron_prune_days to configure cron.daily pruning max age of quar/sess/tmp data; issue #197 diff --git a/CHANGELOG.RELEASE b/CHANGELOG.RELEASE index a5b38fb..9a2c944 100644 --- a/CHANGELOG.RELEASE +++ b/CHANGELOG.RELEASE @@ -1,5 +1,6 @@ v1.6.2 | Jul 13 2017: [Fix] signature updates using get_Remote_file would incorrect write update files into /; issue #242 +[New] added support to send email through 'sendmail' binary as alternative to 'mail'; pr #241 & issue #238 v1.6.1 | May 28 2017: [New] added conf.maldet option cron_prune_days to configure cron.daily pruning max age of quar/sess/tmp data; issue #197 diff --git a/files/internals/internals.conf b/files/internals/internals.conf index ba4bbd8..f03a026 100644 --- a/files/internals/internals.conf +++ b/files/internals/internals.conf @@ -94,7 +94,15 @@ lmd_version_url="https://cdn.rfxn.com/downloads/maldet.current.ver" lmd_current_tgzbase_url="https://cdn.rfxn.com/downloads" lmd_current_tgzfile="maldetect-current.tar.gz" -remote_ip=`dig +short myip.opendns.com @resolver1.opendns.com` +dig=`which dig 2> /dev/null` +nslookup=`which nslookup 2> /dev/null` +if [ -f "/var/cpanel/mainip" ]; then + remote_ip=`cat /var/cpanel/mainip` +elif [ -f "$dig" ]; then + remote_ip=`$dig +short +time=3 +retry=2 myip.opendns.com @resolver1.opendns.com` +elif [ -f "$nslookup" ]; then + remote_ip=`$nslookup -sil -querytype=A myip.opendns.com resolver1.opendns.com | awk '/^Address: / { print $2 ; exit }'` +fi remote_uri_timeout="10" remote_uri_retries="3" clamav_paths="/usr/local/cpanel/3rdparty/share/clamav/ /var/lib/clamav/ /var/clamav/ /usr/share/clamav/ /usr/local/share/clamav"