[Rspamd-Users] settings.conf sections and rcpt/from

Ronny Seffner r.seffner at seffner-schlesier.de
Thu Dec 9 14:36:26 UTC 2021

I have to reopen this thread ;-(

> Set a priority for your "match recipient" rule (ie. section1) and set a
> higher priority for the rules with special handling (section2).

Now there is:
/etc/rspamd/settings.conf with inlude-merge /etc/rspamd/local.d/settings.conf
/etc/rspamd/local.d/settings.conf with:

ruleXXX {
  id = "someID";
  priority = high;
  from = "@domain.tld";
  rcpt = "@domain.tld";
  want_spam = yes;
and include-merge /etc/rspamd/local.d/more_settings.conf

/etc/rspamd/local.d/more_settings.conf with:

ruleYYY {
  id = "someotherID";
  priority = low;
  rcpt = "user at domain.tld";
  apply {
    actions {
      add_header = 8.0;
      rewrite_subject = 8.0;

I would like that mail form somebody @domain.tld to somebody @domain.tld get no scores, no subject rewriting BUT mail from somebody at anyotherdomain.tld to somebody @domain.tld will be scored an subject rewritten from 8.0.

What happens is that mail form somebody at domain.tld to user at domain.tld is scored and subject is rewritten with scores from 8.0.

What did I understand the wrong way? How to solve my task?

Mit freundlichen Grüßen

Ronny Seffner

More information about the Users mailing list