From owner-freebsd-questions Tue Aug 26 06:49:24 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA10908 for questions-outgoing; Tue, 26 Aug 1997 06:49:24 -0700 (PDT) Received: from chillin.ele.tue.nl (root@chillin.ele.tue.nl [131.155.20.247]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id GAA10902 for ; Tue, 26 Aug 1997 06:49:19 -0700 (PDT) Received: from gromit.nev.ml.org (dail.7da.nl [195.108.246.106]) by chillin.ele.tue.nl (8.8.7/8.8.7) with ESMTP id PAA08643; Tue, 26 Aug 1997 15:49:05 +0200 Received: from localhost [127.0.0.1] by gromit.nev.ml.org id KAA00722; Tue, 26 Aug 1997 10:58:22 +0200 Date: Tue, 26 Aug 1997 10:58:22 +0200 (MET DST) From: Paul Dekkers X-Sender: psd@gromit.nev.ml.org To: "Brian J. McGovern" cc: questions@FreeBSD.ORG Subject: Re: Mail alias list update... In-Reply-To: <199708260246.WAA09022@spoon.beta.com> Message-ID: Organization: Me and organized? MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hi You'd better set up a 'virtusertable', e.g.: paul@domain.org paul@otherhost.org postmaster@domain.org paul@otherhost.org @domain.org someone@otherhost.org make it with 'makemap hash virtusertable < virtusertable' and set up your config.mc with 'FEATURE(virtusertable, `hash /etc/mail/virtusertable')dnl' it works great for me, and; if you want to send mail to more than one user: list@domain.org list-domain@localhost and in the aliases file: list-domain: person1, person2 works ok here again ;-) Paul On Mon, 25 Aug 1997, Brian J. McGovern wrote: >Almost two years ago, someone on this list gave me some mail rules so that I >could alias some of the virtual domains that I have. The rules are in the >S98 section (sendmail.cf), and read like: > > >R$* < @domain.com.> $* $: $(maferrets $1 $:$1<@domain.com.> $) $2 >R$* < @domain.com.> $* $#error $: "User Unknown" > >I also have a line further up that looks like: > >Kdomain hash /etc/aliases.domain.org > >Within the aliases.domain.org file, I have lines that look like: > >original_user new_user<@foo.bar.com.> >next_user next_user<@foo.bar.com.> > >Unfortunately, some of the aliases I want to now deliver to multiple end-users. >But, when I do: > >agroup user1<@foo.bar.com.>, user2<@foo.bar.com.> > >It doesn't work. Looking at the ruleset, I understand why, as the second and >subsequent addresses get tokenized as $*. > >I guess my question is, with the new versions of sendmail and the like, whether >there is a similar, BETTER WAY (tm). > >If someone can give me a quick answer, or point me to a document, I'd be >greatful. Just realize, I'm not a sendmail wizard, so be prepared to talk >down to me. > -Brian > -- Paul Dekkers (psd@worldaccess.nl or psd@dds.nl) N.E.V - Nescio Ergo Valeo I'm using pine, I like buying memory