<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi Thom,</p>
    <p>Thanks for the quick updates.  It is working for me.  I've
      attached a patch against v0.2.0 with a few more site changes that
      may be of interest to be incorporated in some manner into the
      project's script.</p>
    <p>(1) Made the systemd service name settable at the top of the
      script in case anyone has a different name for whatever reason.</p>
    <p>(2) Added logic to determine what the syslog facility name should
      be set to based on the MailScanner configuration files and changed
      'mail' to $SYSLOG throughout the script.<br>
    </p>
    (3) Added additional logging if the either file downloaded is
    possibly corrupt.  Related to this, if the wget/curl combo fail for
    whatever reason, I remove whatever may have been downloaded and log
    an error.  The script no longer exits and continues after setting a
    "got an error" variable to 1.  As currently written, the script
    should drop down and get a another error when it sees that there is
    no bad/safe master file.  At that point, the {bad/safe}_updated
    boolean is set back to 0.   At the very end, exit returns whatever
    "got an error" is set to.  I made these changes since I wanted to be
    alerted if the file downloaded is possibly corrupted but also wanted
    to give the script a chance to process the safe sites even if the
    bad sites file had problems. <br>
    <br>
    Anyhow, if you find any of this useful then feel free to incorporate
    the changes in some manner.<br>
    <br>
    cheers,<br>
    <br>
    <br>
    --tom<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 08/23/2017 12:46 AM, Thom van der
      Boon wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:75553495.208628.1503463588709.JavaMail.zimbra@vdb.nl">
      <div style="font-family: Helvetica; font-size: 12pt; color:
        #000000">
        <div>Hi all,<br>
        </div>
        <div><br data-mce-bogus="1">
        </div>
        <div>Attached a new version of the ms-phising-script for testing<br
            data-mce-bogus="1">
        </div>
        <div><br data-mce-bogus="1">
        </div>
        <div>What has changed:<br data-mce-bogus="1">
        </div>
        <ul>
          <li>Serious typo in the restart Mailscanner part<br
              data-mce-bogus="1">
          </li>
          <li>If one of the two custom files is changed, the script will
            regenerate the file and if configured restart mailscanner<br
              data-mce-bogus="1">
          </li>
          <li>Added support for restarting MailScanner on systemd
            systems<br data-mce-bogus="1">
          </li>
          <li>And various minor other enhancements<br data-mce-bogus="1">
          </li>
        </ul>
        <div>Any feedback is highly appriciated<br data-mce-bogus="1">
        </div>
        <div><br data-mce-bogus="1">
        </div>
        <div data-marker="__SIG_PRE__">
          <div>Met vriendelijke groet, Best regards,</div>
          <div><br>
          </div>
          <div><br style="font-family: helvetica;"
              data-mce-style="font-family: helvetica;">
            <span style="font-family: helvetica;"
              data-mce-style="font-family: helvetica;">Thom van der Boon</span><br
              style="font-family: helvetica;"
              data-mce-style="font-family: helvetica;">
            <span style="font-family: helvetica;"
              data-mce-style="font-family: helvetica;">E-Mail:
              <a class="moz-txt-link-abbreviated" href="mailto:thom@vdb.nl">thom@vdb.nl</a></span></div>
          <div><br>
          </div>
          <div><br style="font-family: helvetica;"
              data-mce-style="font-family: helvetica;">
            <br style="font-family: helvetica;"
              data-mce-style="font-family: helvetica;">
            <span style="font-family: helvetica;"
              data-mce-style="font-family: helvetica;">=====</span></div>
          <div><br>
          </div>
          <div><br data-mce-bogus="1">
          </div>
          <div><br data-mce-bogus="1">
          </div>
          <div><span style="font-family: helvetica;"
              data-mce-style="font-family: helvetica;">Thom.H. van der
              Boon b.v.</span><br style="font-family: helvetica;"
              data-mce-style="font-family: helvetica;">
            <span style="font-family: helvetica;"
              data-mce-style="font-family: helvetica;"></span><span
              style="font-family: helvetica;"
              data-mce-style="font-family: helvetica;">Transito 4</span></div>
          <div><span style="font-family: helvetica;"
              data-mce-style="font-family: helvetica;">6909 DA 
              Babberich<br style="font-family: helvetica;"
                data-mce-style="font-family: helvetica;">
            </span><span style="font-family: helvetica;"
              data-mce-style="font-family: helvetica;">Tel.: +31 (0)88
              4272727</span><br style="font-family: helvetica;"
              data-mce-style="font-family: helvetica;">
            <span style="font-family: helvetica;"
              data-mce-style="font-family: helvetica;">Fax: +31 (0)88
              4272789</span><br style="font-family: helvetica;"
              data-mce-style="font-family: helvetica;">
            <span style="font-family: helvetica;"
              data-mce-style="font-family: helvetica;">Home Page:
              <a class="moz-txt-link-freetext" href="http://www.vdb.nl/">http://www.vdb.nl/</a></span></div>
        </div>
        <br>
        <hr id="zwchr" data-marker="__DIVIDER__">
        <div data-marker="__HEADERS__"><b>Van: </b>"Thomas Lohman"
          <a class="moz-txt-link-rfc2396E" href="mailto:thomasl@mtl.mit.edu"><thomasl@mtl.mit.edu></a><br>
          <b>Aan: </b><a class="moz-txt-link-abbreviated" href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br>
          <b>Verzonden: </b>Dinsdag 22 augustus 2017 19:06:16<br>
          <b>Onderwerp: </b>Re: Phishing Server Change<br>
        </div>
        <br>
        <div data-marker="__QUOTED_TEXT__">
          <p>Hi Thom,</p>
          <p>I've attached a patch based off the copy of the script
            downloaded from the site that seems to be working for me. 
            It should update the bad/safe conf files if either the date
            of the master or the custom file is newer than the conf file
            date.<br>
          </p>
          hopefully it is useful.<br>
          <br>
          <br>
          --tom<br>
          <br>
          <br>
          <div class="moz-cite-prefix">On 08/22/2017 10:44 AM, Thom van
            der Boon wrote:<br>
          </div>
          <blockquote
            cite="mid:1656938329.207044.1503413095806.JavaMail.zimbra@vdb.nl">
            <div style="font-family: Helvetica; font-size: 12pt; color:
              #000000">
              <div>Hi Tom,<br>
              </div>
              <div><br>
              </div>
              <div>It does not. Will incorporate that in the next
                version.<br>
              </div>
              <div><br>
              </div>
              <div>
                <div>Met vriendelijke groet, Best regards,</div>
                <div><br>
                </div>
                <div><br style="font-family: helvetica;">
                  <span style="font-family: helvetica;">Thom van der
                    Boon</span><br style="font-family: helvetica;">
                  <span style="font-family: helvetica;">E-Mail: <a
                      class="moz-txt-link-abbreviated"
                      href="mailto:thom@vdb.nl" target="_blank"
                      moz-do-not-send="true">thom@vdb.nl</a></span><br
                    data-mce-bogus="1">
                </div>
                <div><br>
                </div>
                <div><br style="font-family: helvetica;">
                  <br style="font-family: helvetica;">
                  <span style="font-family: helvetica;">=====</span></div>
                <div><br>
                </div>
                <div><br>
                </div>
                <div><br>
                </div>
                <div><span style="font-family: helvetica;">Thom.H. van
                    der Boon b.v.</span><br style="font-family:
                    helvetica;">
                  <span style="font-family: helvetica;"></span><span
                    style="font-family: helvetica;">Transito 4</span></div>
                <div><span style="font-family: helvetica;">6909 DA 
                    Babberich<br style="font-family: helvetica;">
                  </span><span style="font-family: helvetica;">Tel.: +31
                    (0)88 4272727</span><br style="font-family:
                    helvetica;">
                  <span style="font-family: helvetica;">Fax: +31 (0)88
                    4272789</span><br style="font-family: helvetica;">
                  <span style="font-family: helvetica;">Home Page: <a
                      class="moz-txt-link-freetext"
                      href="http://www.vdb.nl/" target="_blank"
                      moz-do-not-send="true">http://www.vdb.nl/</a></span><br
                    data-mce-bogus="1">
                </div>
              </div>
              <br>
              <hr id="zwchr">
              <div><b>Van: </b>"Thomas Lohman" <a
                  class="moz-txt-link-rfc2396E"
                  href="mailto:thomasl@mtl.mit.edu" target="_blank"
                  moz-do-not-send="true"><thomasl@mtl.mit.edu></a><br>
                <b>Aan: </b><a class="moz-txt-link-abbreviated"
                  href="mailto:mailscanner@lists.mailscanner.info"
                  target="_blank" moz-do-not-send="true">mailscanner@lists.mailscanner.info</a><br>
                <b>Verzonden: </b>Dinsdag 22 augustus 2017 16:41:59<br>
                <b>Onderwerp: </b>Re: Phishing Server Change<br>
              </div>
              <br>
              <div>Hi,<br>
                <br>
                how does the script deal with the use case where the
                master has not <br>
                changed on the remote site (thus no new copy is
                downloaded) but the <br>
                custom file has changed since the last run?  It looks
                like the changes <br>
                to the custom file will not be merged into the <br>
                phishing.safe.sites.conf/phishing.bad.sites.conf file
                unless <br>
                safe_updated/bad_updated has been set to 1.<br>
                <br>
                thanks,<br>
                <br>
                <br>
                --tom<br>
                <br>
                <br>
                <br>
                <br>
                -- <br>
                MailScanner mailing list<br>
                <a class="moz-txt-link-abbreviated"
                  href="mailto:mailscanner@lists.mailscanner.info"
                  target="_blank" moz-do-not-send="true">mailscanner@lists.mailscanner.info</a><br>
                <a class="moz-txt-link-freetext"
                  href="http://lists.mailscanner.info/mailman/listinfo/mailscanner"
                  target="_blank" moz-do-not-send="true">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
              </div>
            </div>
            <br>
            <fieldset class="mimeAttachmentHeader"></fieldset>
            <br>
          </blockquote>
          <br>
          <br>
          <br>
          <br>
          -- <br>
          MailScanner mailing list<br>
          <a class="moz-txt-link-abbreviated" href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br>
          <a class="moz-txt-link-freetext" href="http://lists.mailscanner.info/mailman/listinfo/mailscanner">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">

</pre>
    </blockquote>
    <br>
  </body>
</html>