<!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 
style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space">
<DIV dir=ltr align=left><SPAN class=988105422-22062014><FONT color=#0000ff 
size=2 face=Arial>Oh, I already change the script, I actually have a mix of /opt 
and redhat rpm installs</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> Sunday, June 22, 2014 6:37 PM<BR><B>To:</B> MailScanner 
discussion<BR><B>Subject:</B> Re: Phishing Update Service<BR></FONT><BR></DIV>
<DIV></DIV>Rick,
<DIV><BR></DIV>
<DIV>I will update it later. For now I would suggest just updating the links in 
the script for you /opt install.&nbsp;<BR>
<DIV apple-content-edited="true">
<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; -webkit-text-stroke-width: 0px"><BR 
class=Apple-interchange-newline>-</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; -webkit-text-stroke-width: 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; -webkit-text-stroke-width: 0px"><A 
href="http://www.mailborder.com">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; -webkit-text-stroke-width: 0px"><BR></DIV><BR 
class=Apple-interchange-newline></DIV><BR>
<DIV>
<DIV>On Jun 23, 2014, at 12:00 AM, Rick Cooper &lt;<A 
href="mailto:rcooper@dwford.com">rcooper@dwford.com</A>&gt; wrote:</DIV><BR 
class=Apple-interchange-newline>
<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" 
  class=Apple-tab-span></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" 
  class=Apple-tab-span></SPAN>MS_DIR=/etc/MailScanner/phishing.safe.sites.conf<BR>Fi<BR><BR>If 
  [ "${MS_DIR}" == "" ]; then<BR><SPAN style="WHITE-SPACE: pre" 
  class=Apple-tab-span></SPAN>echo phishing.safe.sites.conf cannot be 
  found<BR><SPAN style="WHITE-SPACE: pre" class=Apple-tab-span></SPAN>echo 
  EXITING<BR><SPAN style="WHITE-SPACE: pre" class=Apple-tab-span></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 
  &nbsp;/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">http://phishing.mailborder.com/phishing.safe.sites.conf</A><BR>ERR_CODE=$?<BR>if 
  [ "$ERR_CODE" == "0" ]; then<BR>&nbsp;cp -f 
  /tmp/phishing.safe.sites.conf<BR>/etc/MailScanner/phishing.safe.sites.conf<BR>&nbsp;chmod 
  0644 /etc/MailScanner/phishing.bad.sites.conf<BR>&nbsp;rm -f 
  /tmp/phishing.safe.sites.conf<BR>else<BR>&nbsp;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>http://phishing.mailborder.com/phishing.safe.sites.conf<BR>ERR_CODE=$?<BR>if 
  [ "$ERR_CODE" == "0" ]; then<BR>&nbsp;cp -f 
  /tmp/phishing.safe.sites.conf<BR>/etc/MailScanner/phishing.safe.sites.conf<BR>&nbsp;chmod 
  0644 /etc/MailScanner/phishing.bad.sites.conf<BR>&nbsp;rm -f 
  /tmp/phishing.safe.sites.conf<BR>else<BR>&nbsp;echo Had a problem downloading 
  phishing.safe.sites.conf error code 
  was<BR>$ERR_CODE<BR>fi<BR>fi<BR><BR>________________________________<BR><BR>From: 
  mailscanner-bounces@lists.mailscanner.info<BR>[mailto:mailscanner-bounces@lists.mailscanner.info] 
  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>http://phishing.mailborder.com/<BR><BR><BR><BR>-<BR>Jerry 
  Benton<BR>www.mailborder.com<BR><BR><BR><BR>-- <BR>MailScanner mailing 
  list<BR>mailscanner@lists.mailscanner.info<BR>http://lists.mailscanner.info/mailman/listinfo/mailscanner<BR><BR>Before 
  posting, read http://wiki.mailscanner.info/posting<BR><BR>Support MailScanner 
  development - buy the book off the website! 
<BR></BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>