From owner-freebsd-stable@FreeBSD.ORG Tue Dec 19 19:41:43 2006 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 7170016A412 for ; Tue, 19 Dec 2006 19:41:43 +0000 (UTC) (envelope-from chris@vindaloo.com) Received: from corellia.vindaloo.com (corellia.vindaloo.com [64.51.148.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05B6043CA9 for ; Tue, 19 Dec 2006 19:41:42 +0000 (GMT) (envelope-from chris@vindaloo.com) Received: from yavin.vindaloo.com (yavin.vindaloo.com [172.24.144.34]) by corellia.vindaloo.com (Postfix) with ESMTP id 6993F5C47; Tue, 19 Dec 2006 14:41:42 -0500 (EST) Received: from [172.24.145.69] (endor.vindaloo.com [172.24.145.69]) by yavin.vindaloo.com (Postfix) with ESMTP id 1345625395; Tue, 19 Dec 2006 14:41:42 -0500 (EST) Message-ID: <45884075.50108@vindaloo.com> Date: Tue, 19 Dec 2006 14:41:41 -0500 From: Christopher Hilton User-Agent: Thunderbird 1.5.0.8 (Macintosh/20061025) MIME-Version: 1.0 To: Christopher Hilton References: <45844912.7070103@vindaloo.com> In-Reply-To: <45844912.7070103@vindaloo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org, freebsd-ports@freebsd.org Subject: Is syslog() reentrant? Was: 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: Tue, 19 Dec 2006 19:41:43 -0000 Christopher Hilton wrote: > Has anyone gotten a newer version of OpenBSD's spamd than the one in > ports going? I'm cvsupping my ports tree now but since I didn't see an > update on the cvs server I'm assuming 3.7 is the latest version. > > Between OpenBSD 3.7 and 3.8 spamd gained the ability to tarpit or > stutter at all connections for a configurable period of time. I > understand that stuttering for the first few seconds of the SMTP dialog > causes many spammers to go away before even generating a greylisting > tuple. It's something I'd like to try and see for myself and it will be > fairly easy since my primary MX is behind an OpenBSD firewall. However, > my secondary MX is a FreeBSD box with no such protection and I fear that > the spammers will just take advantage of the fact that my secondary MX > has weaker protections than my primary. > A casual attempt to compile a fresher copy of the software shows that spamd is using the OpenBSD's reentrant syslog functions (syslog_r, openlog_r, etc) Is FreeBSD's syslog already reentrant? -- Chris