From owner-freebsd-questions@freebsd.org Mon Jun 18 19:11:53 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9682B101AE38 for ; Mon, 18 Jun 2018 19:11:53 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from inet08.hamilton.harte-lyne.ca (inet08.hamilton.harte-lyne.ca [216.185.71.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "inet08.hamilton.harte-lyne.ca", Issuer "CA_HLL_ISSUER_2016" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4026F6D471 for ; Mon, 18 Jun 2018 19:11:53 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from localhost (localhost [127.0.0.1]) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTP id C23BA62591 for ; Mon, 18 Jun 2018 15:11:52 -0400 (EDT) X-Virus-Scanned: amavisd-new at harte-lyne.ca Received: from inet08.hamilton.harte-lyne.ca ([127.0.0.1]) by localhost (inet08.hamilton.harte-lyne.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jooTbyiDJPMH for ; Mon, 18 Jun 2018 15:11:51 -0400 (EDT) Received: from webmail.harte-lyne.ca (inet04.hamilton.harte-lyne.ca [216.185.71.24]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTPSA id E13EA62581 for ; Mon, 18 Jun 2018 15:11:50 -0400 (EDT) Received: from 216.185.71.44 (SquirrelMail authenticated user byrnejb_hll) by webmail.harte-lyne.ca with HTTP; Mon, 18 Jun 2018 15:11:50 -0400 Message-ID: Date: Mon, 18 Jun 2018 15:11:50 -0400 Subject: Unable to run policyd-spf on FreeBSD-11.1 From: "James B. Byrne" To: freebsd-questions@freebsd.org Reply-To: byrnejb@harte-lyne.ca User-Agent: SquirrelMail/1.4.22-5.el6 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jun 2018 19:11:53 -0000 I have installed: py36-postfix-policyd-spf-python-2.0.2 Pure Python Postfix policy daemon for SPF checking Which installed the following dependencies: py36-authres-1.1.0 Python module for RFC 5451 Authentication-Results headers py36-py3dns-3.1.1 Python 3 DNS library py36-pyspf-2.0.12_4 SPF (Sender Policy Framework) implemented in Python py36-setuptools-39.0.1 Python packages installer python36-3.6.5 Interpreted object-oriented programming language However, when I test policyd-spf I get this: /usr/local/bin/policyd-spf Traceback (most recent call last): File "/usr/local/bin/policyd-spf", line 39, in import spf ImportError: bad magic number in 'spf': b'\x03\xf3\r\n' Checking /usr/local/bin/ reveals this: ll /usr/local/bin/*spf* -rwxr-xr-x 1 root wheel 48277 May 27 01:09 /usr/local/bin/policyd-spf lrwxr-xr-x 1 root wheel 37 May 26 12:50 /usr/local/bin/spf.py-3.6 -> ../lib/python3.6/site-packages/spf.py -r--r--r-- 1 root wheel 60140 Apr 10 2017 /usr/local/bin/spf.pyc -rwxr-xr-x 1 root wheel 22998 May 10 05:36 /usr/local/bin/spfquery.pl -rwxr-xr-x 1 root wheel 4705 May 26 12:50 /usr/local/bin/spfquery.py-3.6 I have made no alterations to the installed packages. What else has to be done to get policyd-spf to run? -- *** e-Mail is NOT a SECURE channel *** Do NOT transmit sensitive data via e-Mail Do NOT open attachments nor follow links sent by e-Mail James B. Byrne mailto:ByrneJB@Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3