[Rspamd-Users] add_header confusion

Johann Neuhauser johann at it-neuhauser.de
Fri Feb 19 09:58:37 UTC 2021


This headers should only be added if "extended_spam_headers = true" is set.

Can you post the output of the fillowing commands?
```
cd /etc/rspamd && grep -rn "extended_spam_headers"
```

-----Original message-----
> From: kutz <hdkutz at hdkutz.de>
> Sent: Thursday 18th February 2021 9:05
> To: users at lists.rspamd.com
> Subject: [Rspamd-Users] add_header confusion
> 
> Hello List,
> trying to figure out setting add_header.
> When looking into my rspamd configuration for add_header Option I see:
> <snip>
> # grep add_header */*
> local.d/dmarc.conf:    # Changed from reject to add_header
> local.d/dmarc.conf:    quarantine = "add_header";
> local.d/ip_score.conf:add_header_score = 1;
> local.d/metrics.conf:   # add_header = 0; rspamd test
> local.d/metrics.conf:   #add_header = 6;
> local.d/metrics.conf:   add_header = 5;
> override.d/metrics.conf:        # add_header = 0; rspamd test
> override.d/metrics.conf:        add_header = 5;
> <snip>
> 
> IMHO x-spamd header are only added when 5 Points of SPAM Score have been
> reached - as configured in /etc/rspamd/override.d/metrics.conf.
> Other add_header Options are commented.
> 
> But i see that header is added even when Score is lower than 5:
> <snip>
> X-Spamd-Result: default: False [-0.10 / 20.00];
>         ARC_NA(0.00)[];
>         HAS_XOIP(0.00)[];
>         FROM_HAS_DN(0.00)[];
>         TO_MATCH_ENVRCPT_ALL(0.00)[];
>         MIME_GOOD(-0.10)[multipart/alternative,text/plain];
>         PREVIOUSLY_DELIVERED(0.00)[####@#####.##];
>         RCPT_COUNT_ONE(0.00)[1];
>         RCVD_COUNT_THREE(0.00)[4];
>         DKIM_SIGNED(0.00)[####.##:s=20180507];
>         NEURAL_HAM(-0.00)[-1.000];
>         TO_DN_EQ_ADDR_ALL(0.00)[];
>         FROM_EQ_ENVFROM(0.00)[];
>         MIME_TRACE(0.00)[0:+,1:+,2:~];
>         RCVD_TLS_LAST(0.00)[]
> X-Spamd-Bar: /
> X-Rspamd-Server: ###############
> X-Spam-Status: No, score=-0.10
> X-Rspamd-Queue-Id: 4Dh5SP29pvz56jVc
> <snip>
> 
> Is this normal behavior?
> Or am I missing something?
> 
> Cheers,
> ku
> -- 
> 
> Darth Vader:
> 	I find your lack of faith disturbing.
> -- 
> Users mailing list
> Users at lists.rspamd.com
> https://lists.rspamd.com/mailman/listinfo/users
> 


More information about the Users mailing list