Re: Problem getting python-policyd-spf to reject on Permerror

"Scott Kitterman" <[email protected]> Thu, 14 Dec 2017 13:05:23 -0500
Newsgroups gmane.mail.spam.spf.devel
Message-ID <5763829.cvo16CVY1m@kitterma-e6430>
On Thursday, December 14, 2017 04:45:14 PM David Jones via spf-devel wrote:
> I would like to up my SPF game a bit and provide feedback to those who do=
n't
> have a misconfigured SPF record.  I have enabled debugging and only see an
> action of prepending the AR header.
>=20
> postfix-3.0.5-1.el6.x86_64
> python-pyspf-2.0.11-1.el6.noarch
>=20
> /etc/python-policyd-spf/policyd-spf.conf
> debugLevel =3D 5
> defaultSeedOnly =3D 1
> HELO_reject =3D False
> Mail_From_reject =3D Fail
> No_Mail =3D False
> PermError_reject =3D True
> TempError_Defer =3D False
> skip_addresses =3D 127.0.0.0/8,::ffff:127.0.0.0/104,::1
> Whitelist =3D 96.4.1.0/26,96.5.1.0/26
> Header_Type =3D AR
>=20
...
>=20
> How do I get the action above to reject instead of adding a header?

There is a bug (that I haven't root caused yet) related to No_Mail.  I beli=
eve=20
if you remove No_Mail =3D False from your config it will work.  That's the=
=20
default anyway, so it should be fine to remove it.

Scott K