Public bug reported:

Using the following Ubuntu version:
Description:    Ubuntu 14.04.1 LTS
Release:        14.04

After installing and configuring the package postfix-policyd-spf-
python_1.2-1_all.deb, I get this error in mail.log that cause postfix to
reject the mail with an error:

policyd-spf[1398]: Traceback (most recent call last):
policyd-spf[1398]:   File "/usr/bin/policyd-spf", line 662, in <module>
policyd-spf[1398]:     instance_dict, configData, peruser)
policyd-spf[1398]:   File "/usr/bin/policyd-spf", line 398, in _spfcheck
policyd-spf[1398]:     foo = string.split(sender, '@', 1)
policyd-spf[1398]: AttributeError: 'module' object has no attribute 'split'
postfix/spawn[1397]: warning: command /usr/bin/policyd-spf exit status 1
postfix/smtpd[1348]: warning: premature end-of-input on private/policyd-spf 
while reading input attribute name

On line 398 of /usr/bin/policyd-spf
string.split(sender, '@', 1) 
should be 
sender.split('@', 1)

Package from trusty-backports contains version 1.3 of policyd-spf that
has the fix and work correctly but as backports packages are not enabled
nor installed by default, I think this should be corrected.

** Affects: pypolicyd-spf (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1599926

Title:
  Broken script cause postfix to fail receiving mail

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pypolicyd-spf/+bug/1599926/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to