From owner-freebsd-questions Sun Jun 25 14:41:41 2000 Delivered-To: freebsd-questions@freebsd.org Received: from eagle.prod.itd.earthlink.net (eagle.prod.itd.earthlink.net [207.217.120.24]) by hub.freebsd.org (Postfix) with ESMTP id 4D6B737BC13 for ; Sun, 25 Jun 2000 14:41:39 -0700 (PDT) (envelope-from cjc@earthlink.net) Received: from dialin-client.earthlink.net (pool0109.cvx21-bradley.dialup.earthlink.net [209.179.192.109]) by eagle.prod.itd.earthlink.net (8.9.3-EL_1_3/8.9.3) with ESMTP id OAA03494; Sun, 25 Jun 2000 14:41:33 -0700 (PDT) Received: (from cjc@localhost) by dialin-client.earthlink.net (8.9.3/8.9.3) id OAA00699; Sun, 25 Jun 2000 14:40:02 -0700 (PDT) Date: Sun, 25 Jun 2000 14:40:01 -0700 From: "Crist J. Clark" To: Nathan Vidican Cc: questions@FreeBSD.ORG Subject: Re: /etc/aliases wildcard-alias Message-ID: <20000625144001.C334@dialin-client.earthlink.net> Reply-To: cjclark@alum.mit.edu References: <200006252017.QAA23499@mail.govital.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <200006252017.QAA23499@mail.govital.net>; from nate@mail.govital.net on Sun, Jun 25, 2000 at 04:17:28PM -0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Jun 25, 2000 at 04:17:28PM -0400, Nathan Vidican wrote: > I need to create an alias for all users of the system, I tried making a simple script that reads every user rom /etc/master.passwd, and adds them to an alias in the form of user,user,user (etc). When I run 'newliases', I get an error on that paticular alias stating that it's too large (2774 users). $ man 5 aliases . . . BUGS If you have compiled sendmail with DBM support instead of NEWDB, you may have encountered problems in dbm(3) restricting a single alias to about 1000 bytes of information. You can get longer aliases by ``chaining''; that is, make the last name in the alias be a dummy name which is a con- tinuation alias. > Is there not a simpler way of making an alias to users on the system? Since our users add/remove/change all te time, somesort of wildcard would be really nice. It could be possible to make the alias entry in /etc/aliases a pipe to a program that assembles the list of current users in RT. -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message