From owner-freebsd-questions@FreeBSD.ORG Sat Aug 19 23:48:35 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 3985516A4E1 for ; Sat, 19 Aug 2006 23:48:35 +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 A15A143D5F for ; Sat, 19 Aug 2006 23:48:28 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.pc (patr530b-0217.otenet.gr [62.103.226.217]) (authenticated bits=128) by igloo.linux.gr (8.13.7/8.13.7/Debian-2) with ESMTP id k7JNm6Wa022868 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 20 Aug 2006 02:48:10 +0300 Received: from gothmog.pc (gothmog [127.0.0.1]) by gothmog.pc (8.13.7/8.13.7) with ESMTP id k7JNlesu003577; Sun, 20 Aug 2006 02:47:41 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.pc (8.13.7/8.13.7/Submit) id k7JNleQX003576; Sun, 20 Aug 2006 02:47:40 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Sun, 20 Aug 2006 02:47:40 +0300 From: Giorgos Keramidas To: Bill Moran Message-ID: <20060819234740.GA3508@gothmog.pc> References: <20060819192139.7ea5321d.wmoran@collaborativefusion.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060819192139.7ea5321d.wmoran@collaborativefusion.com> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-2.895, required 5, autolearn=not spam, AWL -0.30, BAYES_00 -2.60, UNPARSEABLE_RELAY 0.00) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-questions@freebsd.org 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: Sat, 19 Aug 2006 23:48:35 -0000 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