Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Nov 2006 15:46:08 -0500
From:      John Nielsen <lists@jnielsen.net>
To:        freebsd-questions@freebsd.org
Cc:        David Banning <david+dated+1164830658.2933e3@skytracker.ca>
Subject:   Re: question on virtusertable - sendmail
Message-ID:  <200611241546.09526.lists@jnielsen.net>
In-Reply-To: <20061124201828.GA9575@kobe.laptop>
References:  <20061124193944.GA4950@skytracker.ca> <20061124200417.GA13063@skytracker.ca> <20061124201828.GA9575@kobe.laptop>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Friday 24 November 2006 15:18, Giorgos Keramidas wrote:
> On 2006-11-24 15:04, David Banning 
<david+dated+1164830658.2933e3@skytracker.ca> 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



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?200611241546.09526.lists>