Description of problem: The following exception occurs if 'Header_type' is set to AR in the configuration file. Header_Type = AR Apr 3 15:42:23 examplesrv policyd-spf[4333]: Traceback (most recent call last): Apr 3 15:42:23 examplesrv policyd-spf[4333]: File "/usr/libexec/postfix/policyd-spf", line 680, in <module> Apr 3 15:42:23 examplesrv policyd-spf[4333]: instance_dict, configData, peruser) Apr 3 15:42:23 examplesrv policyd-spf[4333]: File "/usr/libexec/postfix/policyd-spf", line 449, in _spfcheck Apr 3 15:42:23 examplesrv policyd-spf[4333]: header += str(authres.AuthenticationResultsHeader(authserv_id = configData.get('Authserv_Id'), Apr 3 15:42:23 examplesrv policyd-spf[4333]: NameError: global name 'authres' is not defined Version-Release number of selected component (if applicable): pypolicyd-spf-1.3.1-2.el7.noarch
This is caused by the authres module not being installed. In version 2.0.2 I added a specific error message to explain the situation better. The module is optional because it's only used if the header field type is set to "AR", which is not the default.
Not planning on bumping up to spf-engine for EPEL7.