From owner-freebsd-questions@freebsd.org Tue Sep 29 06:02:12 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3D8F7A0B94D for ; Tue, 29 Sep 2015 06:02:12 +0000 (UTC) (envelope-from heiko-rhauderfehn@t-online.de) Received: from mailout08.t-online.de (mailout08.t-online.de [194.25.134.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mailout00.t-online.de", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DF9AC1A9B for ; Tue, 29 Sep 2015 06:02:11 +0000 (UTC) (envelope-from heiko-rhauderfehn@t-online.de) Received: from fwd16.aul.t-online.de (fwd16.aul.t-online.de [172.20.26.243]) by mailout08.t-online.de (Postfix) with SMTP id D94013F2755 for ; Tue, 29 Sep 2015 07:54:16 +0200 (CEST) Received: from [192.168.1.253] (SyQSKwZdghuTxkz-DmzlGJT3yW3QYw3NvsQkOAJWyo4V8y16o3kPz1mI5+YM2RLQDC@[2.232.70.62]) by fwd16.t-online.de with (TLSv1:DHE-RSA-AES256-SHA encrypted) esmtp id 1Zgnrh-38xhOC0; Tue, 29 Sep 2015 07:54:13 +0200 MIME-Version: 1.0 Subject: E-mail Notice!!!(freebsd-questions@FreeBSD.org) To: freebsd-questions@FreeBSD.org From: "E-mail Administrator" Date: Tue, 29 Sep 2015 07:54:14 +0200 Message-ID: <1Zgnrh-38xhOC0@fwd16.t-online.de> X-ID: SyQSKwZdghuTxkz-DmzlGJT3yW3QYw3NvsQkOAJWyo4V8y16o3kPz1mI5+YM2RLQDC X-TOI-MSGID: 1839eb96-9d7b-4b9a-87e8-b1d6f29dd323 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Description: Mail message body X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Sep 2015 06:02:12 -0000 E-mail Notice for freebsd-questions@FreeBSD.org. = Dear freebsd-questions@FreeBSD.org, = 3840MB 4096MB = Current size Maximum size = This is to notify you that you wont be able to send or receive mails As = you have used 98% of your quota and your account will be closed. The safety of your E-mail account is important. To avoid this from happening please click here to avoid suspension of E-m= ail account. Warning!!! please do not ignore message to avoid your email -freebsd-que= stions@FreeBSD.org- account from being closed. Thanks, Mail System Admi= nistrator This notification was sent to dprince_eze@yahoo.com; =20 From owner-freebsd-questions@freebsd.org Tue Sep 29 07:52:09 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 92D9DA0B846 for ; Tue, 29 Sep 2015 07:52:09 +0000 (UTC) (envelope-from gandalf@shopzeus.com) Received: from shopzeus.com (shopzeus.com [87.229.70.149]) by mx1.freebsd.org (Postfix) with ESMTP id 56A361DB4 for ; Tue, 29 Sep 2015 07:52:08 +0000 (UTC) (envelope-from gandalf@shopzeus.com) Received: from [127.127.127.127] (localhost [127.127.127.127]) (Authenticated sender: gandalf) by shopzeus.com (Postfix) with ESMTPSA id C136F889B808 for ; Tue, 29 Sep 2015 03:51:59 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shopzeus.com; s=shopzeus_com; t=1443513120; bh=7awIedQFiHlzOVe5ZbeX+oQB3phraYaYcUxItjbH+vk=; h=To:From:Subject:Date:From; b=mBZW474Pf80VwA7t8XtiP0uVY+i9uS3ZaM8e2EvQx/sQ3wea7/SDOWHcZ53OehBI3 AsMdN6zAlZH522fwSHwir9m5QNUrdj41AyL8Er0bemP2IS3QJ5WAgLFh1PEVDjF6bb bBAzya+P+gdMYGXU+02CHZsfajNdGpQCI6r3r6o6jUk1YxM8lIVuhad4Fb8hx9JUtQ mVcEzIplA4ZCyZHA9ziA7Hvxrajvh449ybmeJkGWXxlYTDPqP0QDmIr5F9EnGNYmzA d8f4uELXyBt2BSrhdbWJb4u8zuhVz6kXvU6bIduA9iEMcEmIBmPHFivPlpjiO+Cenh sjXhC+jv4jWZg== To: freebsd-questions@freebsd.org From: =?UTF-8?Q?Nagy_L=c3=a1szl=c3=b3_Zsolt?= Subject: postfix + policyd-spf : ip address not recognized Message-ID: <560A431D.4060108@shopzeus.com> Date: Tue, 29 Sep 2015 09:51:57 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Sep 2015 07:52:09 -0000 System: FreeBSD 10.2-RELEASE-p2 Postfix version: 2.11.6 Policyd-spf version: py27-postfix-policyd-spf-python-1.2 I have added "check_policy_service unix:private/policyd-spf" to "smtpd_recipient_restrictions" in main.cf. This is what I see in the maillog: Sep 29 03:49:37 shopzeus policyd-spf[5634]: Traceback (most recent call last): Sep 29 03:49:37 shopzeus policyd-spf[5634]: File "/usr/local/bin/policyd-spf", line 701, in Sep 29 03:49:37 shopzeus policyd-spf[5634]: instance_dict, configData, peruser) Sep 29 03:49:37 shopzeus policyd-spf[5634]: File "/usr/local/bin/policyd-spf", line 413, in _spfcheck Sep 29 03:49:37 shopzeus policyd-spf[5634]: res = spf.check2(ip, helo_fake_sender, helo, querytime=configData.get('Lookup_Time')) Sep 29 03:49:37 shopzeus policyd-spf[5634]: File "/usr/local/bin/spf.py", line 297, in check2 Sep 29 03:49:37 shopzeus policyd-spf[5634]: receiver=receiver,timeout=timeout,verbose=verbose,querytime=querytime).check() Sep 29 03:49:37 shopzeus policyd-spf[5634]: File "/usr/local/bin/spf.py", line 378, in __init__ Sep 29 03:49:37 shopzeus policyd-spf[5634]: self.set_ip(i) Sep 29 03:49:37 shopzeus policyd-spf[5634]: File "/usr/local/bin/spf.py", line 405, in set_ip Sep 29 03:49:37 shopzeus policyd-spf[5634]: self.ipaddr = ipaddress.ip_address(i) Sep 29 03:49:37 shopzeus policyd-spf[5634]: File "/usr/local/lib/python2.7/site-packages/ipaddress.py", line 163, in ip_address Sep 29 03:49:37 shopzeus policyd-spf[5634]: ' a unicode object?' % address) Sep 29 03:49:37 shopzeus policyd-spf[5634]: AddressValueError: '176.32.127.140' does not appear to be an IPv4 or IPv6 address. Did you pass in a bytes (str in Python 2) instead of a unicode object? Sep 29 03:49:37 shopzeus postfix/spawn[2227]: warning: command /usr/local/bin/policyd-spf exit status 1 Sep 29 03:49:37 shopzeus postfix/smtpd[2786]: warning: premature end-of-input on private/policyd-spf while reading input attribute name Now, this seems to be the very same error: https://bugzilla.redhat.com/show_bug.cgi?id=1230373 But here is what I also have: # pip install -U ipaddress Requirement already up-to-date: ipaddress in /usr/local/lib/python2.7/site-packages # pip install -U ipaddr Requirement already up-to-date: ipaddr in /usr/local/lib/python2.7/site-packages I think this cannot be a bug introduced 2 months ago and still not fixed? Then what is wrong here? How can I fix this? Thanks, Laszlo