From owner-freebsd-questions@FreeBSD.ORG Sun Jul 4 19:38:24 2004 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 1F2DF16A4CE for ; Sun, 4 Jul 2004 19:38:24 +0000 (GMT) Received: from anchor-post-30.mail.demon.net (anchor-post-30.mail.demon.net [194.217.242.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 915FD43D4C for ; Sun, 4 Jul 2004 19:38:23 +0000 (GMT) (envelope-from jeff+freebsd@jrpenn.demon.co.uk) Received: from jrpenn.demon.co.uk ([194.222.241.254]) by anchor-post-30.mail.demon.net with esmtp (Exim 3.35 #1) id 1BhCob-0001Ho-0U for freebsd-questions@freebsd.org; Sun, 04 Jul 2004 20:38:22 +0100 Received: from jeff by jrpenn.demon.co.uk with local (Exim 4.34 (FreeBSD)) id 1BhCnz-0009cc-Qk for freebsd-questions@freebsd.org; Sun, 04 Jul 2004 20:37:39 +0100 Received: by jrpenn.demon.co.uk (tmda-sendmail, from uid 1001); Sun, 04 Jul 2004 20:37:39 +0100 (BST) Date: Sun, 4 Jul 2004 20:37:39 +0100 To: freebsd-questions@freebsd.org Message-ID: <20040704193739.GA36949@jrpenn.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i From: Jeff Penn X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) Subject: Re: postfix postmap, when to use X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jeff Penn List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jul 2004 19:38:24 -0000 dave : > I've got a confusion issue, regarding postfix's postmap and when to use > it. I've read some documentation that suggests you don't need to run it when > making regexp or pcre map types such as in header_checks, yet the > header_checks file supplied with postfix 2.1 suggests to run it. In addition > hash and other types i'm similar confused. Has this changed from 2.0 to 2.1? I believe you are correct, certainly pcre & possibly regexp do not require postmap to be run. Postfix has the tools to help you work this out for yourself: believe you are correct, certainly pcre & possibly regexp do not require postmap to be run. Postfix has the tools to help you work this out for yourself: # cat /usr/local/etc/postfix/maps/helo_access.pcre /^[0-9]+(\.[0-9]+){3}$/ REJECT Invalid hostname # postmap -q 10.0.0.1 pcre:/usr/local/etc/postfix/maps/helo_access.pcre REJECT Invalid hostname # cat /usr/local/etc/postfix/maps/user_access jeff OK # postmap -q jeff hash:/usr/local/etc/postfix/maps/user_access postmap: fatal: open database /usr/local/etc/postfix/maps/user_access.db : No such file or directory # postmap hash:/usr/local/etc/postfix/maps/user_access # postmap -q jeff hash:/usr/local/etc/postfix/maps/user_access OK Use postconf -m to find out what databases your system supports. jeff