testonly append headers

Bug #1849994 reported by Victor Rubiella Monfort
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SPF Engine
Fix Released
Low
Scott Kitterman

Bug Description

TestOnly mode is appending headers. It's not a real "test only" mode.
If you have configured move to SPAM when SPF headers Fail/Softfail, with "TestOnly" mode, headers are prepended and mails are moved to SPAM...

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

If you want no header added, there's an option for that:

Header_Type = None

The documentation does specify that the header will be added.

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

Note: The pypolicyd-spf project was renamed spf-engine. Reassigning the bug to the new project.

I have added mention of using Header_Type to the TestOnly description in policyd-spf.conf (5). That should make this clearer in the future. It will be included in the next spf-engine release.

affects: pypolicyd-spf → spf-engine
Changed in spf-engine:
importance: Undecided → Low
status: New → Fix Committed
assignee: nobody → Scott Kitterman (kitterman)
milestone: none → 2.9.2
Revision history for this message
Victor Rubiella Monfort (vrubiella) wrote :

Ok, thanks! but In my point of view test only mode shouldn't be append any headers whatever the value of "Header_Type".

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

I understand that perspective and I think it makes sense, but given that the program is behaving in accordance with the documentation, I'm reluctant to change it since there is no way to know who might be relying on the current behavior.

In retrospect, that might have been better, but I think it's better not to change now given that it's been that way since the option was created almost three years ago (and for much longer than that before the option was renamed).

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

--- 2.9.2 (1019-11-22)
  * Add mention in policyd-spf.conf (5) in the TestOnly entry that to get both
    TestOnly behavior and no header field appended, Header_Type = None also
    needs to be set (LP: #1849994)
  * Milter: Move drop_privileges before Milter.runmilter and delete
    own_socketfile so that the milter interface runs as the correct user
    without race conditions about changing ownership of the socket file when
    it hasn't been created yet (When the milter is started, it will create the
    socket based on uMask, so we don't need to manually change it)

Changed in spf-engine:
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

Remote bug watches

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