From owner-freebsd-questions@FreeBSD.ORG Wed Nov 26 07:56:27 2003 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 A8FF916A4CE for ; Wed, 26 Nov 2003 07:56:27 -0800 (PST) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC99843FA3 for ; Wed, 26 Nov 2003 07:56:26 -0800 (PST) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from be-well.no-ip.com ([66.30.200.37]) by comcast.net (rwcrmhc12) with ESMTP id <20031126155626014007qg3fe>; Wed, 26 Nov 2003 15:56:26 +0000 Received: by be-well.no-ip.com (Postfix, from userid 1147) id F07D46D; Wed, 26 Nov 2003 10:56:25 -0500 (EST) Sender: lowell@be-well.ilk.org To: "dave" References: <001401c3b3d2$0a897330$0200a8c0@satellite> From: Lowell Gilbert Date: 26 Nov 2003 10:56:25 -0500 In-Reply-To: <001401c3b3d2$0a897330$0200a8c0@satellite> Message-ID: <44znejcedy.fsf@be-well.ilk.org> Lines: 43 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-questions@freebsd.org Subject: Re: postfix restrictions error X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2003 15:56:27 -0000 "dave" writes: > I'm trying to implement the below restrictions on my postfix 2.0.16 > system. I am getting the error: > "Missing '=' after attribute 'permit_mynetworks'" on a line number Sounds like postfix thinks it's a parameter, not a value. > I copied these verbatum from a site, i do not understand what is > up. Postfix is easier to configure than sendmail, but there's still really no alternative to understanding what you're doing. > > # uce values > strict_rfc821_envelopes = yes > smtpd_etrn_restrictions = permit_mynetworks > smtpd_helo_required = yes > smtpd_helo_restrictions = > permit_mynetworks, > reject_unauth_pipelining, > reject_invalid_hostname > reject_maps_rbl > maps_rbl_domains = > sbl.spamhaus.org, > relays.ordb.org, > opm.blitzed.org, > dun.dnsrbl.net, > spam.dnsrbl.net > smtpd_sender_restrictions = > reject_non_fqdn_sender, > reject_unknown_sender_domain > smtpd_recipient_restrictions = > permit_mynetworks, > reject_unauth_destination, > reject_non_fqdn_recipient I think you've got general syntax problems. A line only continues the previous line if it begins with whitespace. So you should indent a lot of those lines (pretty much all of the ones that don't have an '=' at the end). For readability, I would also separate the different parameter settings with (at least) a blank line.