Add ability to add no header in addition to choosing SPF Received or AR

Bug #1531724 reported by Scott Kitterman
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pypolicyd-spf
Fix Released
Wishlist
Scott Kitterman

Bug Description

Hi team,

I'm using pypolicyd-spf 1.3.2 and Postfix 2.6.6.

I don't want to prepend messages like following.
Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=xxx.xxx.xxx.xxx; helo=AAA.co.jp; <email address hidden>; <email address hidden>
Though, I want to log the result of SPF in maillog.

Could you help me solving this matter?

Changed in pypolicyd-spf:
importance: Undecided → Wishlist
Changed in pypolicyd-spf:
status: New → Triaged
Revision history for this message
Naoki (mi3ku9ni27) wrote :

I could stop prepending message to header by editting policyd-spf like following

# diff ./policyd-spf.after ./policyd-spf
448,449c448
< header = ''
< # header = 'Received-SPF: '+ helo_result[0] + ' (' + helo_result[1] +') ' + spfDetail
---
> header = 'Received-SPF: '+ helo_result[0] + ' (' + helo_result[1] +') ' + spfDetail
557,558c556
< header = ''
< # header = 'Received-SPF: '+ mfrom_result[0] + ' (' + mfrom_result[1] +') ' + spfDetail
---
> header = 'Received-SPF: '+ mfrom_result[0] + ' (' + mfrom_result[1] +') ' + spfDetail

However, I see warning message in maillog by editting like this.
postfix/smtpd[30101]: warning: access table unix:private/policyd-spf entry "policy query" requires header: text

Do anyone have idea with this?

Revision history for this message
Scott Kitterman (kitterman) wrote :

I'm going to reply to your question rather than here since I want this bug to track a proper fix.

Changed in pypolicyd-spf:
milestone: none → 2.0
Changed in pypolicyd-spf:
assignee: nobody → Scott Kitterman (kitterman)
status: Triaged → In Progress
Changed in pypolicyd-spf:
status: In Progress → Fix Committed
Changed in pypolicyd-spf:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.