Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Oct 2001 18:49:44 +0200
From:      Martijn Lina <martijn@medialab.lostboys.nl>
To:        freebsd-security@freebsd.org
Subject:   Re: Amavis + Linux scanners
Message-ID:  <20011008184944.A20079@medialab.lostboys.nl>
In-Reply-To: <20011005150751.F96869-100000@mail.wlcg.com>
References:  <20011006004613.B1992@madcap.dyndns.org> <20011005150751.F96869-100000@mail.wlcg.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--jRHKVT23PllUwdXP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Once upon a 05-10-2001, Rob Simmons hit keys in the following order:
>=20
> Other than that, it works great.  Also, you can cron the following script
> to update your virus identities automatically:

Or subscribe to their IDE notification and run this script from the mail
aliases or your procmailrc:

#!/usr/bin/perl -w
use strict;

my $gonna_die=3D0;
my $mailto=3D"root";
my $mailoutput=3D"|/usr/lib/sendmail -t $mailto";
my $origmail;
my $source;
my $sav_dir=3D"/usr/local/share/sav";

while (<>)
{
   $origmail.=3D$_;
   if ( /(http:\/\/www\.sophos\.com\/downloads\/ide\/.*\.ide)/ && !$gonna_d=
ie)
   {
      $gonna_die =3D system("/usr/local/bin/wget -q -N -P $sav_dir $1");
      $source =3D $1;
   }
}

if ($gonna_die)
{
   mail("Failed virus update", "Getting virus update from $source didn't wo=
rk (errno $gonna_die).\nHere's the original update mail:\n\n$origmail");
   die("Couldn't get virus update");
} else
{
   mail("Virus update","Successfully updated Sophos with $source.\nHere's t=
he original update mail:\n\n$origmail");
}

exit;

sub mail
{
   my $sbj=3Dshift;
   my $msg=3Dshift;
   open(OUTPUT,$mailoutput);
   print OUTPUT "From: Exterminator\n";
   print OUTPUT "To: $mailto\n";
   print OUTPUT "Subject: $sbj\n\n";
   print OUTPUT $msg."\n";
   close(OUTPUT);
}

--jRHKVT23PllUwdXP
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE7wdkow/5eikYCPQYRApgzAJ9dQFGB+REy6Tl51ztEBxS4M+J7PACaAtCH
sDyAfw/2yqI2rel0caDF99Y=
=C24b
-----END PGP SIGNATURE-----

--jRHKVT23PllUwdXP--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011008184944.A20079>