Date: Tue, 26 Aug 1997 10:58:22 +0200 (MET DST) From: Paul Dekkers <psd@worldaccess.nl> To: "Brian J. McGovern" <mcgovern@spoon.beta.com> Cc: questions@FreeBSD.ORG Subject: Re: Mail alias list update... Message-ID: <Pine.LNX.3.96.970826105605.131E-100000@gromit.nev.ml.org> In-Reply-To: <199708260246.WAA09022@spoon.beta.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.3.96.970826105605.131E-100000>