From owner-freebsd-questions@FreeBSD.ORG Wed Mar 9 15:43:01 2005 Return-Path: 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 2A79016A4CE for ; Wed, 9 Mar 2005 15:43:01 +0000 (GMT) Received: from chrononomicon.com (hyperion.trans-warp.net [216.37.208.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 88DA043D58 for ; Wed, 9 Mar 2005 15:43:00 +0000 (GMT) (envelope-from bsilver@chrononomicon.com) Received: from [127.0.0.1] (unverified [65.193.73.208]) by chrononomicon.com (SurgeMail 2.2g3) with ESMTP id 2752 for ; Wed, 09 Mar 2005 10:46:42 -0500 Mime-Version: 1.0 (Apple Message framework v619.2) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; format=flowed To: freebsd-questions Questions From: Bart Silverstrim Date: Wed, 9 Mar 2005 10:43:05 -0500 X-Mailer: Apple Mail (2.619.2) X-Server: High Performance Mail Server - http://surgemail.com X-Authenticated-User: bsilver@chrononomicon.com Subject: postfix on FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Mar 2005 15:43:01 -0000 I'm trying to set up postfix to reject messages to two specific usernames on our domains. The FreeBSD server is taking the messages, checking them for spam and viruses, then forwarding them on to our internal mail server. In the /usr/local/etc/postfix/main.cf file, I added the line: smtpd_recipient_restrictions = check_recipient_access hash:/usr/local/etc/postfix/access I then added to the file /usr/local/etc/postfix/access: username1@ REJECT username2@ REJECT I then ran the commands postmap /usr/local/etc/postfix/access postfix stop && postfix start Then using tail -f /var/log/maillog, I got the error: Mar 9 10:28:16 myserver postfix/postfix-script: stopping the Postfix mail system Mar 9 10:28:16 myserver postfix/master[66263]: terminating on signal 15 Mar 9 10:28:17 myserver postfix/postfix-script: starting the Postfix mail system Mar 9 10:28:17 myserver postfix/master[73766]: daemon started -- version 2.1.5 Mar 9 10:28:48 myserver postfix/smtpd[73796]: fatal: parameter "smtpd_recipient_restrictions": specify at least one working instance of: check_relay_domains, reject_unauth_destination, reject, defer or defer_if_permit Mar 9 10:28:49 myserver postfix/master[73766]: warning: process /usr/local/libexec/postfix/smtpd pid 73796 exit status 1 Mar 9 10:28:49 myserver postfix/master[73766]: warning: /usr/local/libexec/postfix/smtpd: bad command startup -- throttling I put in a hash mark for the smtpd_ line in main.cf and ran another postfix stop and start to get mail working again, but what am I doing wrong with the file?