From owner-freebsd-isp@FreeBSD.ORG Mon Jun 9 01:50:31 2003 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B6F4337B401 for ; Mon, 9 Jun 2003 01:50:31 -0700 (PDT) Received: from mail.trident-uk.co.uk (mail.trident-uk.co.uk [81.3.89.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 597B043FCB for ; Mon, 9 Jun 2003 01:50:30 -0700 (PDT) (envelope-from jamie@tridentmicrosystems.co.uk) Received: from localhost (localhost.pe.trident-uk.co.uk [127.0.0.1]) by mail.trident-uk.co.uk (Postfix) with ESMTP id 758EDEA2; Mon, 9 Jun 2003 09:49:56 +0100 (BST) Received: from jamieheckford (wrkstn-82.pe.trident-uk.co.uk [192.168.100.82]) by mail.trident-uk.co.uk (Postfix) with ESMTP id 70648E9C; Mon, 9 Jun 2003 09:49:55 +0100 (BST) From: "Jamie Heckford" To: "'Chuck Swiger'" Date: Mon, 9 Jun 2003 09:48:42 +0100 Organization: Trident Microsystems Ltd Message-ID: <001801c32e63$edd0a5e0$5264a8c0@jamieheckford> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 In-Reply-To: <3EE21F2A.6010807@mac.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal X-Virus-Scanned: by AMaViS perl-11 cc: freebsd-isp@freebsd.org Subject: RE: Block exe files with Sendmail X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: jamie@tridentmicrosystems.co.uk List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2003 08:50:32 -0000 > James Godwin wrote: > Can anyone point me in the direction of a solution, scripts or > documentation detailing the removal of exe files using sendmail. > Or, If you fancied trying the excellent postfix, its as simple as: -- /usr/local/etc/postfix/block /^(Content-(Type|Disposition):.*|[[:space:]]*(file)?)name=("[^"]*|{^{:sp ace:]]*)\.(exe)[[:>:]]/ REJECT -- /usr/local/etc/postfix/main.cf Body_checks= regexp:/usr/local/etc/postfix/block Cheers, Jamie