On 5/14/2018 7:30 PM, Marc Risse wrote:
> HelloVsevolod,
>
> I asked you about any possibilities about removing headers on outgoing mail at #SLAC last week.
> I want to remove headers like these:
>
> [...]
This is not an "Authentication-Results:" header:
> Received: from [192.168.1.100] (
p5B17xxx.dip0.t-ipconnect.de [91.23.187.xx])
> (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
> (No client certificate requested)
> (Authenticated sender: marc@xxxx)
> by relay.xxxx (Postfix) with ESMTPSA id 7AA321A2F3F
> for <risse@xxxx>; Wed, 14 Mar 2018 20:37:46 +0100 (CET)
>
>
>
> My /etc/rspamd/local.d/milter_headers.conf:
>
The following line can be shortened to 'use = ["x-spamd-bar"];' as the other headers are enabled by 'extended_spam_headers = true;':
> use = ["x-spamd-bar", "spam-header", "x-spamd-result", "x-rspamd-queue-id"];
If you do not want to _add_ headers to outgoing mail just remove the following lines:
> skip_local = false;
> skip_authenticated = false;
> extended_spam_headers = true;
> routines {
What are you trying to achieve here? Maybe it is not what you need.
> spam-header {
> header = "X-Spam-Flag";
> value = "YES";
> remove = 1;
> }
> authentication-results {
> header = "Authentication-Results";
> remove = 1;
> add_smtp_user = false;
> spf_symbols {
>
> But rspamd doesn't remove the authentication-result header neither for incoming or outgoing mail.
There is no "Authentication-Results:" header in your sample. Do you actually want to remove the first "Received:" header?