From owner-freebsd-questions@FreeBSD.ORG Sun Aug 20 03:18:06 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9533B16A4E2 for ; Sun, 20 Aug 2006 03:18:06 +0000 (UTC) (envelope-from noeldude@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 669C743D60 for ; Sun, 20 Aug 2006 03:18:02 +0000 (GMT) (envelope-from noeldude@gmail.com) Received: by ug-out-1314.google.com with SMTP id m2so1333640uge for ; Sat, 19 Aug 2006 20:18:01 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=N/iSqWy2PRcOfsSPBqGBGtQBmfYtxiiPOPWytOzd4wkvX2DEuXcmG+05ZW/xTYvqR/XBMAnC4lJCOKZ2Mxu+V5yNqJnn5AuQln2lVbWu9Q5/RKXV+Iocze1ZoPPaHyvdDbX/PnVjJrP9l5CkwU0Ke8uHFKnL1yPwF+hM3+t2444= Received: by 10.67.93.6 with SMTP id v6mr2715096ugl; Sat, 19 Aug 2006 20:18:01 -0700 (PDT) Received: by 10.66.237.14 with HTTP; Sat, 19 Aug 2006 20:18:01 -0700 (PDT) Message-ID: Date: Sat, 19 Aug 2006 22:18:01 -0500 From: "Noel Jones" To: "freebsd-questions Questions list" In-Reply-To: <20060819234740.GA3508@gothmog.pc> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060819192139.7ea5321d.wmoran@collaborativefusion.com> <20060819234740.GA3508@gothmog.pc> Subject: Re: How to prevent users from receiving email 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: Sun, 20 Aug 2006 03:18:06 -0000 On 8/19/06, Giorgos Keramidas wrote: > On 2006-08-19 19:21, Bill Moran wrote: > > > > Apparently my memory is useless and I've lost the ability to use > > google as well. > > > > I just added a user account to a mail server, but I don't want that > > user to receive mail on that server. It's running Postfix. > > > > I seem to remember a canonical method for preventing certain users > > from receiving email. But my memory has failed, and I can't seem > > to find anything on google. > > > > Is it an /etc/aliases trick? > > You can use the Postfix `access' map for this. You can enable an > `access' map in Postfix by setting in your `main.cf' file: > > smtpd_client_restrictions = \ > check_client_access hash:/usr/local/etc/postfix/access > > Then, in `/usr/local/etc/postfix/access' put: > > user@domain REJECT > > and run `postmap' on the `access' file: > > # postmap /usr/local/etc/postfix/access > > Reload Postfix and off you go :-) > > There are other reject options too, which offer more fine-grained > control of the SMTP error codes and the text of the error messages > Postfix will return. See, for example: > > http://www.postfix.org/access.5.html > Close. But check_client_access is unlikely to be effective matching a recipient address. Use check_recipient_access instead. There are lots of examples on the postfix-users list. -- Noel Jones