From owner-freebsd-questions Thu Mar 6 14:47:40 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6EFE737B401 for ; Thu, 6 Mar 2003 14:47:39 -0800 (PST) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB56443F75 for ; Thu, 6 Mar 2003 14:47:37 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) by smtp.infracaninophile.co.uk (8.12.8/8.12.8) with ESMTP id h26MlVJ6046175 for ; Thu, 6 Mar 2003 22:47:31 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.8/8.12.8/Submit) id h26MlV05046174 for freebsd-questions@FreeBSD.ORG; Thu, 6 Mar 2003 22:47:31 GMT Date: Thu, 6 Mar 2003 22:47:31 +0000 From: Matthew Seaman To: freebsd-questions@FreeBSD.ORG Subject: Re: Sendmail: Deleting file attachments? Message-ID: <20030306224731.GA43875@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , freebsd-questions@FreeBSD.ORG References: <3E67AB9E.8080609@netscape.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E67AB9E.8080609@netscape.net> User-Agent: Mutt/1.5.3i X-Spam-Status: No, hits=-32.5 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.50 X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Mar 06, 2003 at 03:12:14PM -0500, Lucas Holt wrote: > Is there a way to remove file attachments from messages selectively? > Specifically I want to delete .exe, .scr, and .bat files as they enter > the mail server. > > I am using sendmail-sasl from the freebsd ports collection. I also have > procmail installed. > > I looked at mime-defang, but it won't compile correctly. (ports or by > source) You might find this useful: http://www.impsec.org/email-tools/procmail-security.html See the sections on poisoned executables and stripped executables in the configuration page. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message