[Rspamd-Users] Add a custom header on special conditions

Jörg Backschues joerg at backschues.de
Sat Nov 21 10:40:39 UTC 2020


Hello,

I would like to add a custom header for e-mails from external.

At the moment I use the following workaround to do this:

/etc/rspamd/local.d/milter_headers.conf:

use = ["x-rspamd-server"];
routines {
     x-rspamd-server {
     header = "X-My-Custom-Flag";
     hostname = "My custom value";
     hide = 1;
     }
}

Is it possible to add a custom header based on a special condition e.g. 
when DKIM, SPF and DMARC fails?

-- 
Regards
Jörg Backschues


More information about the Users mailing list