From owner-freebsd-questions@FreeBSD.ORG Fri Aug 7 22:31:11 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A2C341065670 for ; Fri, 7 Aug 2009 22:31:11 +0000 (UTC) (envelope-from jeffrey@goldmark.org) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id 7A1AB8FC08 for ; Fri, 7 Aug 2009 22:31:11 +0000 (UTC) Received: from compute2.internal (compute2.internal [10.202.2.42]) by gateway1.messagingengine.com (Postfix) with ESMTP id 62032105F9; Fri, 7 Aug 2009 18:13:35 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute2.internal (MEProxy); Fri, 07 Aug 2009 18:13:35 -0400 X-Sasl-enc: io8DJtMRh+Ue7rGFRl6bYh9IYmMbQ3H74VAixiG+YHsr 1249683215 Received: from hagrid.ewd.goldmark.org (n114.ewd.goldmark.org [72.64.118.114]) by mail.messagingengine.com (Postfix) with ESMTPSA id F394D1E4C6; Fri, 7 Aug 2009 18:13:34 -0400 (EDT) Message-Id: From: Jeffrey Goldberg To: Olivier Nicole In-Reply-To: <200908071142.n77BgWKF034276@banyan.cs.ait.ac.th> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Date: Fri, 7 Aug 2009 17:13:33 -0500 References: <200908071142.n77BgWKF034276@banyan.cs.ait.ac.th> X-Mailer: Apple Mail (2.936) Cc: freebsd-questions@freebsd.org Subject: Re: Cleaning email X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Aug 2009 22:31:11 -0000 On Aug 7, 2009, at 6:42 AM, Olivier Nicole wrote: > reading around the FAQ for FreeBSD mailing list, I see that the > mailing list server does some message cleaning (converting HTML to > text, etc). > I don't want just any solution, that works more or less, but the very > well tested solution used by FreeBSD mailing lists. On the mailing list this is done by the mailing list system, mailman, which is in ports/mail/mailman. But the cleaning stuff is just part of a much larger system (mailing list management), so I don't think you can get it to do what you want. There is a milter, ports/mail/mime-defang which, while it can do many other things (that you don't need to enable, also does this. I haven't used it in more than 5 years, so I can't speak for how well it works. But I did set it up for an organization that had lots of Outhouse users on desktops that were vulnerable to malicious HTML. mimedefang is also useful for blocking certain types of attachments as well. There may be better, special purpose tools that do what you want. You could also look at the mailman source (python) to see how it does its cleaning. -j -- Jeffrey Goldberg http://www.goldmark.org/jeff/