From owner-freebsd-questions@FreeBSD.ORG Fri Nov 24 20:19:05 2006 Return-Path: X-Original-To: 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 D2C5E16A47C for ; Fri, 24 Nov 2006 20:19:05 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7432B43D6B for ; Fri, 24 Nov 2006 20:18:18 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (host5.bedc.ondsl.gr [62.103.39.229]) (authenticated bits=128) by igloo.linux.gr (8.13.8/8.13.8/Debian-2) with ESMTP id kAOKIbxu014078 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 24 Nov 2006 22:18:41 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.13.8/8.13.8) with ESMTP id kAOKIUNi009628; Fri, 24 Nov 2006 22:18:30 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.13.8/8.13.8/Submit) id kAOKIT57009627; Fri, 24 Nov 2006 22:18:29 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Fri, 24 Nov 2006 22:18:29 +0200 From: Giorgos Keramidas To: David Banning Message-ID: <20061124201828.GA9575@kobe.laptop> References: <20061124193944.GA4950@skytracker.ca> <200611241455.30008.lists@jnielsen.net> <20061124200417.GA13063@skytracker.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061124200417.GA13063@skytracker.ca> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-3.433, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.77, BAYES_00 -2.60, DNS_FROM_RFC_ABUSE 0.20) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: questions@freebsd.org, John Nielsen 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:19:05 -0000 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. - Giorgos