[exim] Re: Re-Hash - How to remove headers on ingress?

Pàgina inicial
Delete this message
Reply to this message
Autor: Andreas Metzler
Data:  
A: exim-users
Assumpte: [exim] Re: Re-Hash - How to remove headers on ingress?
Marc Haber <mh+exim-users@???> wrote:
[...]
> So I see correctly that adding X-Localhost-somerandom-Spam: headers in
> th ACL and then having


> headers_add = X-Spam: $h_x-localhost-somerandom-spam
> headers_remove = x-localhost-somerandom-spam


> in the system filter is the closest I can get to removing all foreign
> Spamassassin headers, at the risk of somebody externally forging
> x-localhost-somerandom-spam: and misguiding the filters which might be
> applied later in transmission.


> Or is there an easier way that doesn't have these drawbacks?

[...]

Don't add headers in the acl but set ACL variables instead.

if first_delivery then
  headers remove X-Spam-Score:X-Spam-Report
  if $acl_m0 contains "("
  then
    headers add "X-Spam-Score: $acl_m0"
    headers add "X-Spam-Report: $acl_m1"
  endif
endif
           cu andreas
-- 
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"
                                           http://downhill.aus.cc/