From owner-freebsd-stable@FreeBSD.ORG Fri Mar 9 02:28:08 2007 Return-Path: X-Original-To: freebsd-stable@FreeBSD.ORG Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B1DAA16A401 for ; Fri, 9 Mar 2007 02:28:08 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [210.51.165.229]) by mx1.freebsd.org (Postfix) with ESMTP id 02F3313C4A5 for ; Fri, 9 Mar 2007 02:28:06 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from localhost (tarsier.geekcn.org [210.51.165.229]) by tarsier.geekcn.org (Postfix) with ESMTP id B18ABEB09FC; Fri, 9 Mar 2007 10:28:05 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([210.51.165.229]) by localhost (mail.geekcn.org [210.51.165.229]) (amavisd-new, port 10024) with ESMTP id q5OVglavzRRZ; Fri, 9 Mar 2007 10:27:53 +0800 (CST) Received: from [10.100.3.224] (lupin.hongo.wide.ad.jp [203.178.135.47]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTP id E9E78EB0994; Fri, 9 Mar 2007 10:27:50 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:organization:user-agent:mime-version:to:cc: subject:references:in-reply-to:x-enigmail-version:content-type; b=o2dYs5RW1gf1oDms04ci8q3IDzbIzad7byS6+2BLe1WRljsgDITOCmcqoFPgBCoaR qWOT8YzCSexg3LTxDbIzA== Message-ID: <45F0C624.6090302@delphij.net> Date: Fri, 09 Mar 2007 11:27:48 +0900 From: LI Xin Organization: The FreeBSD Project User-Agent: Thunderbird 1.5.0.10 (Macintosh/20070221) MIME-Version: 1.0 To: Charles Sprickman References: <200612191347.kBJDlg5c058711@lurza.secnetix.de> <45881546.30400@vindaloo.com> <45887C16.2010801@vindaloo.com> <0D61B3BC-F865-4AF2-A2AB-9CDCCBF8C04D@bway.net> In-Reply-To: <0D61B3BC-F865-4AF2-A2AB-9CDCCBF8C04D@bway.net> X-Enigmail-Version: 0.94.1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig47205A50890FF8506A7074F5" Cc: freebsd-stable@FreeBSD.ORG, Christopher Hilton Subject: Re: OpenBSD's spamd. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Mar 2007 02:28:08 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig47205A50890FF8506A7074F5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, Charles Sprickman wrote: >=20 > On Dec 19, 2006, at 6:56 PM, Christopher Hilton wrote: >=20 >> Charles Sprickman wrote: >>> On Tue, 19 Dec 2006, Christopher Hilton wrote: >>>> Oliver Fromme wrote: >>>>> Dimitry Andric wrote: >>>>> > Oliver Fromme wrote: >>>>> > > What does stuttering mean? Is it similar to sendmail's >>>>> > > "greet_pause" feature? >>>>> > > See here: >>>>> > http://www.ualberta.ca/~beck/nycbug06/spamd/mgp00014.html >>>>> >>>>> OK, so the answer to my question seems to be "yes". :-) >>>>> >>>> >>>> Actually I'd say it's similar. If you telnet to port 25 on a server >>>> that's using sendmail's greet_pause option I'm assuming that you get= >>>> nothing for 5 seconds. OpenSD's Spamd sends the initial greeting at >>>> a rate of one character per second and only accepts data from you at= >>>> the same rate. >>> It also sets the window size to something like 1 byte. :) >> >> Yes, it does. This results in the remote smtp daemon getting bound up >> by it's own kernel. >> >>> Someone had mentioned that this would consume many threads/processes,= >>> but that is not the case. Bob explained that spamd runs in a >>> select() loop. I don't totally understand that, but to me it sounds >>> like the same methodology that thttpd used, and that sure scaled up >>> nice. >> >> It keeps an array of file descriptors, one for each connection to the >> remote smtp daemon. It periodically uses the select(2) system call to >> see which of the descriptors is ready and services them accordingly. >> >>> Here's what I think is the latest version of Bob's talk. It's quite >>> good. >>> http://www.ualberta.ca/~beck/nycbug06/spamd/ >>> There's audio available here: >>> http://www.nycbsdcon.org/slides >> >> I heard the talk in the beginning of November, right about the middle >> of the big October/November spamming event of '06. To me the most >> interesting part of the talk was when he spoke about the results of >> tarpitting his greylisted connections and how he eliminated 1,300,000 >> Mail messages from a total of 3,000,000 before they ever hit his MTA. >> That's the feature that's missing from FreeBSD since the port pulls >> spamd from OpenBSD 3.7 and the tarpitting feature was added in the >> revision right after the release 3.7 tag. >> >>> Was the original question "when will the FreeBSD port be updated"?? := ) >> >> Yes. There's lots of ways to do it. One could pull diff from the >> openbsd cvs servers and drop it into the patch directory. That should >> go cleanly but it would be nice to get this revved up to the latest >> release. I've got a copy of the latest code to compile. The call >> symantics of openbsd's openlog_r(3) and syslog_r(3) differ from >> FreeBSD openlog(3) and syslog(3). But It should work. I need to throw >> some polish on it but after I do I'll post the patches here and send >> them to the port maintainer. >=20 > I know this is kind of old, but I'm needing to work with spamd on > FreeBSD and I noticed the port is still stuck at the 3.7 version. >=20 > Do you have anything that you'd like people to test? I think we need a new maintainer for the port, I'm busy working on other stuff and it would be nice if someone else who has time and interest to maintain it to take it instead of me. If anyone needs a checked out copy of the current state of OpenBSD's spamd to ease their port work (note that the tarball I have provided is a patched version), please let me know. For those who wants to became the new maintainer for the port, please note that, there was some discussion about other improvements to the port, please merge them at http://portsmon.freebsd.org/portoverview.py?category=3Dmail&portname=3Dsp= amd Cheers, --=20 Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! --------------enig47205A50890FF8506A7074F5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF8MYkOfuToMruuMARCkzTAJ9XA8Fu/OlS8lSv89ILNvpS+yabIQCfW8DZ qyf7DtYJdFHljVtPP7SSWK8= =Y0dn -----END PGP SIGNATURE----- --------------enig47205A50890FF8506A7074F5--