[Rspamd-Users] rspamd remove A-R header

Christian Rößner c at roessner-network-solutions.com
Fri Jul 5 08:23:39 UTC 2019


Hi Andreas,

> Am 04.07.2019 um 20:07 schrieb A. Schulze <sca at andreasschulze.de>:
> 
> Hello,
> 
> I noticed, my rspamd remove Authentication-Results header inserted by other MTAs
> Is this intended? If yes, why?
> Otherwise: Is there an option to leave such headers on transit?
> 
> 
> Also I noted, rspamd append it's header to the header chain.
> Best practice is to put header "on top" so they reflect the usual way of processing

could you please try to set the following in your local.d/milter_headers:

-----------------------------------------------------------
...

routines {
    authentication-results {
        remove = null;
        header = "Authentication-Results";
        add_smtp_user = true;
    }

    ... other stuff ...
}
-----------------------------------------------------------

And report feedback if that answers your question. I tested:

-----------------------------------------------------------
$> rspamadm lua

LuaJIT 2.0.5> a=0
LuaJIT 2.0.5> if a then print "hallo" end
hallo
LuaJIT 2.0.5> a=null
LuaJIT 2.0.5> if a then print "hallo" end
-----------------------------------------------------------

By setting the remove var to null, rspamadm configdump returns:

-----------------------------------------------------------
$> rspamadm configdump milter_headers

configdump milter_headers
*** Section milter_headers ***
use [
    "authentication-results",
...
]

...

routines {
...
    authentication-results {
        header = "Authentication-Results";
        remove = null;
        add_smtp_user = true;
    }
...
}

*** End of section milter_headers ***
-----------------------------------------------------------

Best wishes

Christian
-- 
Rößner-Network-Solutions
Karl-Bröger-Str. 10, 36304 Alsfeld
Fax: +49 6631 78823409, Mobil: +49 171 9905345
USt-IdNr.: DE225643613, https://roessner.website
PGP fingerprint: 658D 1342 B762 F484 2DDF 1E88 38A5 4346 D727 94E5 



More information about the Users mailing list