From owner-freebsd-isp@FreeBSD.ORG Sat Jun 7 10:21:52 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 D04F137B401 for ; Sat, 7 Jun 2003 10:21:52 -0700 (PDT) Received: from out003.verizon.net (out003pub.verizon.net [206.46.170.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04C5343F85 for ; Sat, 7 Jun 2003 10:21:52 -0700 (PDT) (envelope-from cswiger@mac.com) Received: from mac.com ([141.149.47.46]) by out003.verizon.net (InterMail vM.5.01.05.33 201-253-122-126-133-20030313) with ESMTP id <20030607172151.KDID4805.out003.verizon.net@mac.com>; Sat, 7 Jun 2003 12:21:51 -0500 Message-ID: <3EE21F2A.6010807@mac.com> Date: Sat, 07 Jun 2003 13:21:46 -0400 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030529 X-Accept-Language: en-us, en MIME-Version: 1.0 To: James Godwin References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH at out003.verizon.net from [141.149.47.46] at Sat, 7 Jun 2003 12:21:50 -0500 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 List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Jun 2003 17:21:53 -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. Sure. Please take a look at /usr/ports/mail/mimedefang: 10-sec# cat pkg-descr MIMEDefang is a program for inspecting and modifying e-mail messages as they pass through your mail relay. MIMEDefang is written in Perl, and its filter actions are expressed in Perl, so it's highly flexible. Here are some things that you can do very easily with MIMEDefang: Delete or alter attachments based on file name, contents, results of a virus scan, attachment size, etc. Replace large attachments with links to a centrally-stored copy to ease the burden on POP3 users with slow modem links. Add boilerplate text to e-mail messages. Customize filter rules based on domain, user-name, relay machine, etc. Reject unacceptable messages, where you define what "unacceptable" means. Add or delete recipients for a message. WWW: http://www.mimedefang.org/ - Andrey V. Pevnev andrey@mgul.ac.ru