Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist]

2015-09-10 by Steven Hiscocks

On 10 September 2015 00:13:59 BST, "manu@... [milter-greylist]" <milter-greylist@yahoogroups.com> wrote:
>Steven Hiscocks steven@... [milter-greylist]
><milter-greylist@yahoogroups.com> wrote:
>
>> I've created a patch which optionally adds a 'Received-SPF' header
>when
>> using 'libspf2' (probably could support 'libspf' and version varients
>if
>> there's interest). Avoids having a seperate milter to achieve  this.
>One
>> example where this is useful is prior to 'spamassassin'  as it will
>use
>> the header rather than duplicating the lookups etc.
>
>milter-greylist already has a addheader ACLclause that let you do
>things
>like this:
>racl continue spf pass addheader "Received-SPF: pass"
>
>Therefore a more usefull contribution IMO would be a format string
>substitution for SPF status. Something like this:
>%is -> SPF status
>%id -> DKIM status 
>
>-- 
>Emmanuel Dreyfus
>http://hcpnet.free.fr/pubz
>manu@...

Sure thing. The only issue is that a SPF header needs to be inserted before the top most "received" header to be valid. How about adding a 'insheader' ACL clause where the first argument is the header index (should be 0 in the case of SPF, and typically 1 for a DKIM auth result header) and second the header string?

-- 
Steven Hiscocks

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.