From owner-freebsd-questions@FreeBSD.ORG Wed Mar 9 20:39:08 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 4017716A4CE for ; Wed, 9 Mar 2005 20:39:08 +0000 (GMT) Received: from trans-warp.net (hyperion.trans-warp.net [216.37.208.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id C216343D48 for ; Wed, 9 Mar 2005 20:39:07 +0000 (GMT) (envelope-from bsilver@chrononomicon.com) Received: from [127.0.0.1] (unverified [65.193.73.208]) by trans-warp.net (SurgeMail 2.2g3) with ESMTP id 461 for multiple; Wed, 09 Mar 2005 15:39:03 -0500 In-Reply-To: <55289.128.222.32.10.1110385612.squirrel@mail.scadian.net> References: <55289.128.222.32.10.1110385612.squirrel@mail.scadian.net> Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Bart Silverstrim Date: Wed, 9 Mar 2005 15:39:11 -0500 To: "Jim Trigg" X-Mailer: Apple Mail (2.619.2) X-Server: High Performance Mail Server - http://surgemail.com X-Authenticated-User: bsilver@chrononomicon.com cc: freebsd-questions Questions Subject: Re: 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 20:39:08 -0000 On Mar 9, 2005, at 11:26 AM, Jim Trigg wrote: > On Wed, March 9, 2005 10:43 am, Bart Silverstrim said: >> 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 >> >> Then using tail -f /var/log/maillog, I got the error: >> 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 >> >> 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? > > Read the error message - currently you are configured to accept *any* > message presented except those going to the specified users. That > includes spam intended for completely unrelated domains. I would > recommend using the following as a *bare* minimum: > > smtpd_recipient_restrictions = permit_mynetworks, > reject_unauth_destination, check_recipient_access > hash:/usr/local/etc/postfix/access > > I would also recommend looking at > http://www.postfix.org/SMTPD_ACCESS_README.html and > http://jimsun.linxnet.com/misc/postfix-anti-UCE.txt -- they will help > you > understand what should be in your smtpd_*_restrictions. I saw the errors and googled for it, but it just led to the man pages and site web pages for the postfix project (which I read); what was throwing me was the fact that it wasn't an open relay before and it didn't have the directive previously. I think it was using reasonable defaults before and my adding that line to my main.cf overrode them causing it to burp the error messages.