Skip to content

Commit

Permalink
[New] added support to send email through 'sendmail' binary as altern…
Browse files Browse the repository at this point in the history
…ative to 'mail'; pr #241 & issue #238
  • Loading branch information
rfxn committed Jul 14, 2017
1 parent f4a0046 commit 0af7f68
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.RELEASE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
10 changes: 9 additions & 1 deletion files/internals/internals.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 0af7f68

Please sign in to comment.