Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm list-help: list-post: Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin-apps AT sourceware DOT cygnus DOT com X-Authentication-Warning: hp2.xraylith.wisc.edu: khan owned process doing -bs Date: Mon, 15 May 2000 15:38:54 -0500 (CDT) From: Mumit Khan Reply-To: Mumit Khan To: cygwin-apps AT sourceware DOT cygnus DOT com Subject: Sendmail/bind/db port help needed Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII I'm trying to resurrect my attempts at getting sendmail-8.10.x to work reliably on Cygwin (I started out with Sergey's port to older version of sendmail), and running into some interesting problems. The codebase includes the following: bind 8.2.2-p5 (quite reliable as far as I can tell, at least for the client side), db 3.0.55 (builds, but don't know how well), and sendmail 8.10.1. The basic set of problems include the following: - permission issues: NTSEC can probably work, but there're still some issues there. We can always turn off some of the security features for now, and so we can table this issue for now. - locking issues: This is what's been killing the port. I'm using Berkeley db-3.0.55 (SleepyCat version), slighly tweaked to build under Cygwin. Can't use GDBM with Sendmail. Here's the basic scenario: Sendmail (exclusive) locks the database file, and then calls the dbm routines to open the database. The dbm routine opens the database (new fd), then fail trying to read from the file (which should work, since it's the same process). The error code is somewhat misleading, but essentially it's a lock violation (or whatever win32 error 33 is, which maps to EACCESS in Cygwin). Does anyone here know enough about Berkeley DB internals and know about locking to lend a hand? Note that this is on NT -- on Win9x, Cygwin has to use LockFile instead of LockFileEx, and I don't know how that's going to play out yet. Of course, if I stub the locking code, I can use sendmail just fine (in sending mode, receive mode has some problems still), but that's just waiting for disaster. Regards, Mumit