Phishing Server Change

Shawn Iverson iversons at rushville.k12.in.us
Sun Aug 27 21:48:54 UTC 2017


Patch applied.

Updated script attached with very minor modifications.

Tested and preparing to pull into master branch as well (for 5.0.6-4).

On Wed, Aug 23, 2017 at 11:40 AM, Thomas Lohman <thomasl at mtl.mit.edu> wrote:

> Hi Thom,
>
> 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.
>
> (1) Made the systemd service name settable at the top of the script in
> case anyone has a different name for whatever reason.
>
> (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.
> (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.
>
> Anyhow, if you find any of this useful then feel free to incorporate the
> changes in some manner.
>
> cheers,
>
>
> --tom
>
>
> On 08/23/2017 12:46 AM, Thom van der Boon wrote:
>
> Hi all,
>
> Attached a new version of the ms-phising-script for testing
>
> What has changed:
>
>    - Serious typo in the restart Mailscanner part
>    - If one of the two custom files is changed, the script will
>    regenerate the file and if configured restart mailscanner
>    - Added support for restarting MailScanner on systemd systems
>    - And various minor other enhancements
>
> Any feedback is highly appriciated
>
> Met vriendelijke groet, Best regards,
>
>
> Thom van der Boon
> E-Mail: thom at vdb.nl
>
>
>
> =====
>
>
>
> Thom.H. van der Boon b.v.
> Transito 4
> 6909 DA  Babberich
> Tel.: +31 (0)88 4272727
> Fax: +31 (0)88 4272789
> Home Page: http://www.vdb.nl/
>
> ------------------------------
> *Van: *"Thomas Lohman" <thomasl at mtl.mit.edu> <thomasl at mtl.mit.edu>
> *Aan: *mailscanner at lists.mailscanner.info
> *Verzonden: *Dinsdag 22 augustus 2017 19:06:16
> *Onderwerp: *Re: Phishing Server Change
>
> Hi Thom,
>
> 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.
> hopefully it is useful.
>
>
> --tom
>
>
> On 08/22/2017 10:44 AM, Thom van der Boon wrote:
>
> Hi Tom,
>
> It does not. Will incorporate that in the next version.
>
> Met vriendelijke groet, Best regards,
>
>
> Thom van der Boon
> E-Mail: thom at vdb.nl
>
>
>
> =====
>
>
>
> Thom.H. van der Boon b.v.
> Transito 4
> 6909 DA  Babberich
> Tel.: +31 (0)88 4272727
> Fax: +31 (0)88 4272789
> Home Page: http://www.vdb.nl/
>
> ------------------------------
> *Van: *"Thomas Lohman" <thomasl at mtl.mit.edu> <thomasl at mtl.mit.edu>
> *Aan: *mailscanner at lists.mailscanner.info
> *Verzonden: *Dinsdag 22 augustus 2017 16:41:59
> *Onderwerp: *Re: Phishing Server Change
>
> Hi,
>
> how does the script deal with the use case where the master has not
> changed on the remote site (thus no new copy is downloaded) but the
> custom file has changed since the last run?  It looks like the changes
> to the custom file will not be merged into the
> phishing.safe.sites.conf/phishing.bad.sites.conf file unless
> safe_updated/bad_updated has been set to 1.
>
> thanks,
>
>
> --tom
>
>
>
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
>
>
>
>
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
>
>
>
>
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
>
>


-- 
Shawn Iverson, CETL
Director of Technology
Rush County Schools
765-932-3901 x271
iversons at rushville.k12.in.us
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mailscanner.info/pipermail/mailscanner/attachments/20170827/aefc1feb/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ms-update-phishing
Type: application/octet-stream
Size: 16926 bytes
Desc: not available
URL: <http://lists.mailscanner.info/pipermail/mailscanner/attachments/20170827/aefc1feb/attachment.obj>


More information about the MailScanner mailing list