question on virtusertable - sendmail

John Nielsen lists at jnielsen.net
Fri Nov 24 11:55:36 PST 2006


On Friday 24 November 2006 14:39, David Banning wrote:
> I have several times where I have no user setup in virtusertable but
> the mail is still delivered to the user. If I delete the user
> then the mail bounces - I want to keep the user and still have
> the mail bounce - how would I do that?

Create a virtusertable entry for each user at the relevant domain you DO 
want to receive mail, then add a catchall entry:

bob at domain.com	bob
tom at domain.com	tom
@domain.com		bounce

You can define "bounce" in /etc/mail/aliases, or just leave it undefined 
(since it will probably bounce anyway).

JN


More information about the freebsd-questions mailing list