[Rspamd-Users] Disable outbound X-Spam header

Sophie Loewenthal sophie at klunky.co.uk
Tue Jun 16 13:55:10 UTC 2020

On 16 Jun 2020, at 3:33 pm, Gerald Galster <list+rspamd at gcore.biz> wrote:


> Some email servers rejected our email because it contained the header  X-Spam: yes 

rspamd honors externally set x-spam headers if they are not removed:

reconf['SPAM_FLAG'] = {
 re = string.format('%s || %s || %s',
 score = 5.0,
 description = "Message was already marked as spam",
 group = 'upstream_spam_filters'

> I am doubtful that rspamd marked my email as spam, but hey I shall check the logs when I get into work.
> In the meantime, how may I stop rspamd from adding an X-Spam header to any authenticated outbound email?

If you're using milter (/etc/rspamd/local.d/milter_headers.conf), see


sections local headers, authenticated headers or removing headers, like

headers {
 "X-Spam-Flag" = 0;
 "X-Spam-Status" = 0;
 "X-Spam-Report" = 0;
 "X-Spam-Level" = 0;
 "X-Spam-Checker-Version" = 0;

Best regards
Users mailing list
Users at lists.rspamd.com


I refer to our own smtp-auth email, and not to external messages passed through our systems.  

e.g an smtp-auth user submits an email to our postfix, which passes to rspamd milter. Rspamd incorrectly adds an X-Spam: yes 
This was a false positive.

More information about the Users mailing list