<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 9.00.8112.16555"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=053584317-23062014><FONT color=#0000ff
size=2 face=Arial>I am going to be tied up tight for a while, had a major server
drop and am placing the backup as I type so I dunno how long I am going to be
with a new template server and data backups</FONT></SPAN></DIV><BR>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> mailscanner-bounces@lists.mailscanner.info
[mailto:mailscanner-bounces@lists.mailscanner.info] <B>On Behalf Of </B>Jerry
Benton<BR><B>Sent:</B> Monday, June 23, 2014 4:10 AM<BR><B>To:</B> MailScanner
discussion<BR><B>Subject:</B> Phishing Update Service<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV style="WORD-WRAP: break-word">Rick,
<DIV><BR></DIV>
<DIV>Can you email me the complete script you came up with please? Would save me
some time. <SPAN></SPAN><BR>
<DIV>
<DIV
style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 12px Helvetica; WHITE-SPACE: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px"><BR>-</DIV>
<DIV
style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 12px Helvetica; WHITE-SPACE: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px">Jerry
Benton</DIV>
<DIV
style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 12px Helvetica; WHITE-SPACE: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px"><A
href="http://www.mailborder.com" target=_blank>www.mailborder.com</A></DIV>
<DIV
style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 12px Helvetica; WHITE-SPACE: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px"><BR></DIV><BR></DIV><BR>
<DIV style="DIRECTION: ltr">
<DIV>On Jun 23, 2014, at 12:00 AM, Rick Cooper <<A
href="javascript:_e(%7B%7D,'cvml','rcooper@dwford.com');"
target=_blank>rcooper@dwford.com</A>> wrote:</DIV><BR>
<BLOCKQUOTE type="cite">Could I suggest the following, it will accomidate
/opt/MailScanner installs<BR>as well as /etc/MailScanner installs, and it also
will not overwright the<BR>files if there is not a successful download. It
also leaves the temp file<BR>there if there is an issue. I removed the
--no-check-certificate part<BR>because it's not an ssl site so there is no
point in the parameter. Of<BR>course this could be greatly shortened by just
checking for the files and<BR>creating the links in the same fashion as the
directory and if you really<BR>want to be clean<BR><BR>MS_DIR=<BR>If [ -f
/opt/MailScanner/etc/phishing.safe.sites.conf ]; then<BR><SPAN
style="WHITE-SPACE: pre-wrap"></SPAN>MS_DIR=/opt/MailScanner/etc/phishing.safe.sites.conf<BR>fi<BR>If
[ -f /etc/MailScanner/phishing.safe.sites.conf ]; then<BR><SPAN
style="WHITE-SPACE: pre-wrap"></SPAN>MS_DIR=/etc/MailScanner/phishing.safe.sites.conf<BR>Fi<BR><BR>If
[ "${MS_DIR}" == "" ]; then<BR><SPAN style="WHITE-SPACE: pre-wrap"></SPAN>echo
phishing.safe.sites.conf cannot be found<BR><SPAN
style="WHITE-SPACE: pre-wrap"></SPAN>echo EXITING<BR><SPAN
style="WHITE-SPACE: pre-wrap"></SPAN>exit 1<BR>fi<BR><BR>Then use MS_DIR in a
mv command since there is no chance of over writing
a<BR>symlink<BR><BR>#!/bin/bash<BR># # Mailborder update safe phishing
sites<BR># v4.1.3 # 20 June 2014<BR># # Run this script as a user with write
permissions<BR># to /etc/MailScanner/phishing.safe.sites.conf<BR>if [ ! -d
/etc/MailScanner ]; then<BR>echo etc/MailScanner does not exist, creating
it<BR>mkdir /etc/MailScanner<BR>chmod 0644 /etc/MailScanner<BR>fi<BR><BR>if [
-f /etc/MailScanner/phishing.safe.sites.conf ]; then<BR>/usr/bin/wget -O
/tmp/phishing.safe.sites.conf<BR><A
href="http://phishing.mailborder.com/phishing.safe.sites.conf"
target=_blank>http://phishing.mailborder.com/phishing.safe.sites.conf</A><BR>ERR_CODE=$?<BR>if
[ "$ERR_CODE" == "0" ]; then<BR> cp -f
/tmp/phishing.safe.sites.conf<BR>/etc/MailScanner/phishing.safe.sites.conf<BR> chmod
0644 /etc/MailScanner/phishing.bad.sites.conf<BR> rm -f
/tmp/phishing.safe.sites.conf<BR>else<BR> echo Had a problem downloading
phishing.safe.sites.conf error code was<BR>$ERR_CODE<BR>fi<BR>else<BR>echo
Linking opt Based MailScanner Files<BR>ln -s
/opt/MailScanner/etc/phishing.safe.sites.conf
/etc/MailScanner/<BR>/usr/bin/wget -O /tmp/phishing.safe.sites.conf<BR><A
href="http://phishing.mailborder.com/phishing.safe.sites.conf"
target=_blank>http://phishing.mailborder.com/phishing.safe.sites.conf</A><BR>ERR_CODE=$?<BR>if
[ "$ERR_CODE" == "0" ]; then<BR> cp -f
/tmp/phishing.safe.sites.conf<BR>/etc/MailScanner/phishing.safe.sites.conf<BR> chmod
0644 /etc/MailScanner/phishing.bad.sites.conf<BR> rm -f
/tmp/phishing.safe.sites.conf<BR>else<BR> echo Had a problem downloading
phishing.safe.sites.conf error code
was<BR>$ERR_CODE<BR>fi<BR>fi<BR><BR>________________________________<BR><BR>From:
<A
href="javascript:_e(%7B%7D,'cvml','mailscanner-bounces@lists.mailscanner.info');"
target=_blank>mailscanner-bounces@lists.mailscanner.info</A><BR>[mailto:<A
href="javascript:_e(%7B%7D,'cvml','mailscanner-bounces@lists.mailscanner.info');"
target=_blank>mailscanner-bounces@lists.mailscanner.info</A>] On Behalf Of
Jerry<BR>Benton<BR>Sent: Friday, June 20, 2014 9:23 PM<BR>To: MailScanner
discussion<BR>Subject: Phishing Update Service<BR><BR><BR>Ok, I went a little
further. There are now updated "safe" and "bad" phishing<BR>sites once per
day. Read more and get the scripts here if you want them. <BR><BR><A
href="http://phishing.mailborder.com/"
target=_blank>http://phishing.mailborder.com/</A><BR><BR><BR><BR>-<BR>Jerry
Benton<BR><A href="http://www.mailborder.com"
target=_blank>www.mailborder.com</A><BR><BR><BR><BR>-- <BR>MailScanner mailing
list<BR><A
href="javascript:_e(%7B%7D,'cvml','mailscanner@lists.mailscanner.info');"
target=_blank>mailscanner@lists.mailscanner.info</A><BR><A
href="http://lists.mailscanner.info/mailman/listinfo/mailscanner"
target=_blank>http://lists.mailscanner.info/mailman/listinfo/mailscanner</A><BR><BR>Before
posting, read <A href="http://wiki.mailscanner.info/posting"
target=_blank>http://wiki.mailscanner.info/posting</A><BR><BR>Support
MailScanner development - buy the book off the website!
<BR></BLOCKQUOTE></DIV><BR></DIV></DIV><BR><BR>-- <BR>
<DIV dir=ltr>
<DIV>
<DIV><BR>--<BR></DIV>Jerry Benton<BR></DIV>Mailborder Systems<BR><A
href="http://www.mailborder.com"
target=_blank>www.mailborder.com</A><BR></DIV><BR></BODY></HTML>