Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 76589ee

Browse files
authoredNov 6, 2024··
Update ms-update-phishing to v0.3.1, bump version to 5.5.3-2 (#698)
1 parent 2532a42 commit 76589ee

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed
 

‎VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.5.3-1
1+
5.5.3-2

‎changelog

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
11/06/2024 Changes in v5.5.3-2
2+
==================================
3+
- Add ms-update-phishing version 0.3.1 - Courtesy of Mailborder
4+
15
11/06/2024 Changes in v5.5.3-1
26
==================================
37
- Check for invalid chars in recipient address (msmilter) - Thanks to alexskynet

‎common/usr/sbin/ms-update-phishing

+5-7
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ BADURL='https://phishing.mailscanner.info/phishing.bad.sites.conf.gz';
2929
SAFEURL='https://phishing.mailscanner.info/phishing.safe.sites.conf.gz';
3030
MSSTARTSCRIPT='/etc/init.d/mailscanner';
3131
MSSERVICENAME='mailscanner.service';
32-
PIDFile=`ms-peek 'PID file' $CONFIGDIR/MailScanner.conf`
33-
3432
DEBUG=0
3533

3634
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/etc:/usr/local/bin:/usr/sfw/bin
@@ -113,7 +111,7 @@ fi
113111
bad_updated=1;
114112

115113
if [ $CURLORWGET = 'curl' ]; then
116-
curl -S -A "msv5 Update Script v0.2.0" -z $CONFIGDIR/phishing.bad.sites.conf.master.gz -o $CONFIGDIR/phishing.bad.sites.conf.master.gz $BADURL &> /dev/null
114+
curl -S -A "msv5 Update Script v0.3.1" -z $CONFIGDIR/phishing.bad.sites.conf.master.gz -o $CONFIGDIR/phishing.bad.sites.conf.master.gz $BADURL &> /dev/null
117115
if [ "$?" = "0" ]; then
118116
gunzip -f $CONFIGDIR/phishing.bad.sites.conf.master.gz
119117
[ $DEBUG -eq 1 ] && echo Check or download phishing.bad.sites.conf.master completed OK.
@@ -152,7 +150,7 @@ fi
152150

153151
if [ $CURLORWGET = 'wget' ]; then
154152
echo Trying wget....
155-
wget -q --user-agent="msv5 Update Script v0.2.0" --no-check-certificate -N -O phishing.bad.sites.conf.master.gz $BADURL
153+
wget -q --user-agent="msv5 Update Script v0.3.1" --no-check-certificate -N -O phishing.bad.sites.conf.master.gz $BADURL
156154
if [ "$?" = "0" ]; then
157155
gunzip -f $CONFIGDIR/phishing.bad.sites.conf.master.gz
158156
[ $DEBUG -eq 1 ] && echo Check or download phishing.bad.sites.conf.master completed OK.
@@ -219,7 +217,7 @@ fi
219217
safe_updated=1;
220218

221219
if [ $CURLORWGET = 'curl' ]; then
222-
curl -S -A "msv5 Update Script v0.2.0" -z $CONFIGDIR/phishing.safe.sites.conf.master.gz -o $CONFIGDIR/phishing.safe.sites.conf.master.gz $SAFEURL &> /dev/null
220+
curl -S -A "msv5 Update Script v0.3.1" -z $CONFIGDIR/phishing.safe.sites.conf.master.gz -o $CONFIGDIR/phishing.safe.sites.conf.master.gz $SAFEURL &> /dev/null
223221
if [ "$?" = "0" ]; then
224222
gunzip -f $CONFIGDIR/phishing.safe.sites.conf.master.gz
225223
[ $DEBUG -eq 1 ] && echo Check or download phishing.safe.sites.conf.master completed OK.
@@ -258,7 +256,7 @@ fi
258256

259257
if [ $CURLORWGET = 'wget' ]; then
260258
echo Trying wget....
261-
wget -q --user-agent="msv5 Update Script v0.2.0" --no-check-certificate -N -O phishing.safe.sites.conf.master.gz $SAFEURL
259+
wget -q --user-agent="msv5 Update Script v0.3.1" --no-check-certificate -N -O phishing.safe.sites.conf.master.gz $SAFEURL
262260
if [ "$?" = "0" ]; then
263261
gunzip -f $CONFIGDIR/phishing.safe.sites.conf.master.gz
264262
[ $DEBUG -eq 1 ] && echo Check or download phishing.safe.sites.conf.master completed OK.
@@ -324,7 +322,7 @@ updated=$(($bad_updated + $safe_updated));
324322

325323
if [ $updated -ge 1 ]; then
326324
if [ "$ms_cron_ps_restart" = "1" ]; then
327-
if [ ! -f /var/lock/subsys/MailScanner.off -a -f $PIDFile ]; then
325+
if [ ! -f /var/lock/subsys/MailScanner.off ]; then
328326
logger -p $SYSLOG.info -t ms-update-phishing restart MailScanner....
329327
if [ -d /etc/systemd ]; then
330328
systemctl restart $MSSERVICENAME >/dev/null 2>&1

0 commit comments

Comments
 (0)
Please sign in to comment.