From owner-freebsd-questions@FreeBSD.ORG Fri Apr 18 10:25:22 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 55AA837B401 for ; Fri, 18 Apr 2003 10:25:21 -0700 (PDT) Received: from mail.airnet.com.au (mail.airnet.com.au [202.174.32.5]) by mx1.FreeBSD.org (Postfix) with SMTP id 3F6DB43FE1 for ; Fri, 18 Apr 2003 10:25:17 -0700 (PDT) (envelope-from ws@senet.com.au) Received: (qmail 32340 invoked from network); 18 Apr 2003 17:25:15 -0000 Received: from dsl2-81.gw1.adl1.airnet.com.au (HELO predatorii) (202.174.37.81) by mail.airnet.com.au with SMTP; 18 Apr 2003 17:25:15 -0000 Message-ID: <035201c305cf$aec633e0$0264a8c0@ovirt.dyndns.ws> From: "W. Sierke" To: , References: <050801c30440$a7de7d20$0264a8c0@ovirt.dyndns.ws> Date: Sat, 19 Apr 2003 02:56:44 +0930 Organization: OVirt Technologies MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Subject: Re: maildrop with virtual users (userdb) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Apr 2003 17:25:22 -0000 Jesse D. Guardiani wrote: > > W. Sierke wrote: > > > Can anyone provide any pointers on getting the virtual user facility of > > maildrop-1.5.0 to work? e.g. (with virtuser@domain.tld defined in > > /usr/local/etc/userdb): > > You're on the wrong list. You want one of the courier-mta lists. > > http://www.courier-mta.org > Perhaps, except that the problem (imo) appears to be more specifically related to the FreeBSD port(s). The maildrop port requires (has a dependency on) gdbm. I let this mislead me into believing that the courier-imap port would also be using gdbm since I understood that maildrop and courier-imap both derive from the courier package. The courier-imap port uses the (Berkeley?) db library, however, and unfortunately there are no obvious signs (apart from silent failure and the "Invalid user specified." message from maildrop) that the db-generated userdb is not compatible with gdbm. (This result is from installing courier-imap first and setting up the userdb before installing maildrop. I don't know whether if the order was reversed and the userdb had been created with the tools provided with maildrop, that it would have been courier-imap that wouldn't have been able to access the user entries in userdb). Further, it appears (from my own attempts) that the gdbm option cannot be used with the courier-imap port, the reasons for which I am not sufficiently knowledgable to be able to say (perhaps someone could explain?). This strikes me as odd since the maildrop port obviously can make use of either. Is this a suitable point to raise on, say, freebsd-ports-bugs? The solution to the original problem is to add "--with-db=db" and "--enable-userdb" options when compiling the maildrop port. I only know how to do this by editing the Makefile for maildrop and adding those options to "CONFIGURE_ARGS+=". My attempt at using the -m option to portinstall to do this did not work. My original attempt in which I only added the "--enable-userdb" option failed because maildrop defaults to using gdbm. I've only conducted preliminary testing on this but so far it does work. Wayne