From owner-freebsd-questions@FreeBSD.ORG Mon Sep 22 22:45:13 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 3D23016A4B3 for ; Mon, 22 Sep 2003 22:45:13 -0700 (PDT) Received: from kirk.dlee.org (pool-138-88-48-76.res.east.verizon.net [138.88.48.76]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1265C43FEC for ; Mon, 22 Sep 2003 22:45:12 -0700 (PDT) (envelope-from dgl@kirk.dlee.org) Received: from kirk.dlee.org (dgl@localhost.dlee.org [127.0.0.1]) by kirk.dlee.org (8.12.9/8.12.9) with ESMTP id h8N5j8X9047336 for ; Tue, 23 Sep 2003 01:45:08 -0400 (EDT) (envelope-from dgl@kirk.dlee.org) Received: (from dgl@localhost) by kirk.dlee.org (8.12.9/8.12.9/Submit) id h8N5j8V7047335 for freebsd-questions@freebsd.org; Tue, 23 Sep 2003 01:45:08 -0400 (EDT) (envelope-from dgl) Date: Tue, 23 Sep 2003 01:45:07 -0400 From: Doug Lee To: freebsd-questions@freebsd.org Message-ID: <20030923054507.GX29084@kirk.dlee.org> Mail-Followup-To: Doug Lee , freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.25i Organization: Bartimaeus Group Subject: dynamic mail alias lists? 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: Tue, 23 Sep 2003 05:45:13 -0000 Is there a way to make sendmail (or any other MTA for that matter, but I use sendmail) map an alias to the run of a process that returns the addresses for it? I know /etc/[mail/]aliases can forward through a program, but that's different. I also know it can read aliases from a file, but to use that for this, I'd have to make the file a named pipe. Named pipes are interesting, but I like to avoid them unless necessary because accidents can cause infinite program stalls. Finally, I know some of sendmail's tables (virtual user??) can be used in place of or in addition to aliases, but I still don't see a way to use that for this. What I want to do is to make some of my aliases retrieve their address lists at run time from a database of my own design that also may be used for other things. Example: A database of users in different categories, where there are mail aliases for the categories and a way to get the users in a particular category at run time from the database. Please let me know if this is possible--or, for that matter, if I'm missing an obvious and less bizarre solution. Please Cc me on all responses. I subscribe to this list, but a Cc will get me to notice the reply in hours instead of days or weeks. :) -- Doug Lee dgl@dlee.org http://www.dlee.org Bartimaeus Group doug@bartsite.com http://www.bartsite.com "It is difficult to produce a television documentary that is both incisive and probing when every twelve minutes one is interrupted by dancing rabbits singing about toilet paper." --Rod Serling