From owner-freebsd-questions@FreeBSD.ORG Fri Nov 24 20:46:18 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 88C4E16A40F for ; Fri, 24 Nov 2006 20:46:18 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id D5CDC43D6B for ; Fri, 24 Nov 2006 20:45:30 +0000 (GMT) (envelope-from lists@jnielsen.net) Received: from [192.168.0.102] (cpe-024-163-054-055.nc.res.rr.com [24.163.54.55]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id kAOKkC2R030800; Fri, 24 Nov 2006 12:46:13 -0800 (PST) (envelope-from lists@jnielsen.net) From: John Nielsen To: freebsd-questions@freebsd.org Date: Fri, 24 Nov 2006 15:46:08 -0500 User-Agent: KMail/1.9.4 References: <20061124193944.GA4950@skytracker.ca> <20061124200417.GA13063@skytracker.ca> <20061124201828.GA9575@kobe.laptop> In-Reply-To: <20061124201828.GA9575@kobe.laptop> X-Face: #X5#Y*q>F:]zT!DegL3z5Xo'^MN[$8k\[4^3rN~wm=s=Uw(sW}R?3b^*f1Wu*.<=?utf-8?q?of=5F4NrS=0A=09P*M/9CpxDo!D6?=)IY1w<9B1jB; tBQf[RU-R<,I)e"$q7N7 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200611241546.09526.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean Cc: David Banning Subject: Re: question on virtusertable - sendmail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Nov 2006 20:46:18 -0000 On Friday 24 November 2006 15:18, Giorgos Keramidas wrote: > On 2006-11-24 15:04, David Banning wrote: > >> @domain.com bounce > >> > >> You can define "bounce" in /etc/mail/aliases, or just leave it > >> undefined (since it will probably bounce anyway). > > > > I am looking at my /etc/mail/aliases > > > > how would I define bounce? > > > > I know I could simple send it to /dev/null, but I want it to bounce > > back to the sender with a "no such user" error. > > How about bouncing from inside `virtusertable' itself? > > alpha@domain.com alpha > beta@domain.com beta > @domain.com error:nouser 550 No such user here > > I think this is the cleanest way to do something like the setup you > described, since all the relevant information is kept closely packed > together in `virtusertable' itself. I thought there should be a better way than what I described. With this approach you don't necessarily need a catchall entry. Just let the mail flow through for everyone except exceptions listed in virtusertable. JN