From owner-freebsd-security Mon Oct 8 9:50:12 2001 Delivered-To: freebsd-security@freebsd.org Received: from medialab.lostboys.nl (medialab.lostboys.nl [194.109.72.254]) by hub.freebsd.org (Postfix) with ESMTP id 6EB6237B405 for ; Mon, 8 Oct 2001 09:49:50 -0700 (PDT) Received: from buur.medialab.lostboys.nl (root@buur.medialab.lostboys.nl [194.109.110.8]) by medialab.lostboys.nl (8.9.3/8.9.3) with ESMTP id SAA20322 for ; Mon, 8 Oct 2001 18:55:43 +0200 (CEST) Received: from darkroom.medialab.lostboys.nl (ip-037.medialab.lostboys.nl [194.109.110.37]) by buur.medialab.lostboys.nl (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id SAA15027 for ; Mon, 8 Oct 2001 18:51:02 +0200 Received: by darkroom.medialab.lostboys.nl (Postfix, from userid 1000) id D6CA415F7; Mon, 8 Oct 2001 18:49:44 +0200 (CEST) Date: Mon, 8 Oct 2001 18:49:44 +0200 From: Martijn Lina To: freebsd-security@freebsd.org Subject: Re: Amavis + Linux scanners Message-ID: <20011008184944.A20079@medialab.lostboys.nl> Mail-Followup-To: freebsd-security@freebsd.org References: <20011006004613.B1992@madcap.dyndns.org> <20011005150751.F96869-100000@mail.wlcg.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jRHKVT23PllUwdXP" Content-Disposition: inline In-Reply-To: <20011005150751.F96869-100000@mail.wlcg.com> User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --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