From owner-freebsd-questions Tue Sep 7 12: 0:42 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mailhost.criterion.canon.co.uk (mailhost.criterion.canon.co.uk [194.223.249.254]) by hub.freebsd.org (Postfix) with ESMTP id 091C015644 for ; Tue, 7 Sep 1999 12:00:37 -0700 (PDT) (envelope-from adamn@csl.com) Received: from csl.com (hermes.criterion.canon.co.uk [194.223.249.13]) by mailhost.criterion.canon.co.uk (8.8.8/8.7.3) with ESMTP id TAA26196; Tue, 7 Sep 1999 19:48:50 +0100 (BST) Message-ID: <37D5606C.8AECC037@csl.com> Date: Tue, 07 Sep 1999 19:58:52 +0100 From: Adam Nealis Organization: Criterion Software, Ltd. X-Mailer: Mozilla 4.6 [en] (X11; I; Linux 2.0.34 i686) X-Accept-Language: en MIME-Version: 1.0 To: "Christopher T. Griffiths" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Sendmail question References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Christopher T. Griffiths" wrote: > > Hi, > > Does anyone know of a way to get newaliases to rebuild a btree formatted > alias file. > > I am using the userdb files to do name re-writing. I would like to be able > to rebuild the userdb along with my regular aliases db's. Since the userdb > uses the btree format, I usually have to rebuild it with > > makemap btree /etc/mail/userdb < /etc/mail/userdb > > Here is what my current aliases line looks like. > O AliasFile=/etc/mail/aliases,/etc/mail/mailman > > Any help would be appreciated since I guess I am just being lazy :) Perhaps - I happened to have the Bat Book (second Ed) on my desk, and had a look for something similar. In section 33.8.1 a reference is made to btree. You have to have compiled sendmail with NEWDB defined for this to be available. Doing a grep NEWDB /usr/src/usr.sbin/sendmail/Makefile on my 3.2-STABLE gave DBMDEF= -DNEWDB so it's there by default. But you should really do something like sendmail -bt -d0.1