From owner-freebsd-ports@FreeBSD.ORG Tue Dec 19 20:43:18 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1F96516A415; Tue, 19 Dec 2006 20:43:18 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 047E943CA3; Tue, 19 Dec 2006 20:42:32 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.6/8.13.8) id kBJKBBNV014410; Tue, 19 Dec 2006 14:11:11 -0600 (CST) (envelope-from dan) Date: Tue, 19 Dec 2006 14:11:11 -0600 From: Dan Nelson To: Christopher Hilton Message-ID: <20061219201110.GB87992@dan.emsphone.com> References: <45844912.7070103@vindaloo.com> <45884075.50108@vindaloo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45884075.50108@vindaloo.com> X-OS: FreeBSD 6.2-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-stable@freebsd.org, freebsd-ports@freebsd.org Subject: Re: Is syslog() reentrant? Was: OpenBSD's spamd. X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Dec 2006 20:43:18 -0000 In the last episode (Dec 19), Christopher Hilton said: > 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? It is, as of FreeBSD 5.4. In previous versions only openlog() and syslog("%m") with an invalid errno were non-reentrant. http://www.freebsd.org/cgi/query-pr.cgi?pr=72394 -- Dan Nelson dnelson@allantgroup.com