From owner-freebsd-questions Tue Dec 7 12:48:40 1999 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 52A9814E45 for ; Tue, 7 Dec 1999 12:48:36 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id OAA05797; Tue, 7 Dec 1999 14:48:33 -0600 (CST) (envelope-from dan) Date: Tue, 7 Dec 1999 14:48:33 -0600 From: Dan Nelson To: Robert A Clarks Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Attachment blocking; has the wheel already been invented? Message-ID: <19991207144833.A5309@dan.emsphone.com> References: <88256840.006FF3CB.00@notes.or.regence.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <88256840.006FF3CB.00@notes.or.regence.com>; from "Robert A Clarks" on Tue Dec 7 12:22:00 GMT 1999 X-OS: FreeBSD 4.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Dec 07), Robert A Clarks said: > I may be called on to setup a system to block inbound email > attachments. > > The only clues I've found so far, point to sendmail with procmail as > a delivery agent, which calls a perl script to filter out attachments > when any but a select few from fields are matched. > > Perl would use the mime module to help figure out what was an > attachment and what was not. > > It seems like procmail may be a bit redundant, but may keep me from > needing to write the delivery agent in perl. You can add a rule to procmail to only pipe messages with a header of "Content-Type: multipart/.*"; that'll reduce the number of mails that you have to run through perl. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message