[Rspamd-Users] $queryid

Gunther Nitzsche gnitzsche at netcologne.de
Thu Nov 17 16:07:46 UTC 2022


Hi,

I don't see it - maybe someone else can help out?

When rejecting an email because of hitting some symbol, it
is useful to add a $queryid in the reject-message, so that
the sender can make a qualified response/question about
the situation.

That works quite well - like in:

  5.7.1 (support-id: 582D411D82) Your mail was rejected because of Spam 
- contact <some-email> if you believe this is an error;

Here generated by force_actions.conf in local.d/force_actions.conf
acting on a symbol triggered in multimap.conf:

multimap.conf:

X-BLA-SYMBOL {
        type = "header";
        header = "X-localsomething";
        map = "/etc/rspamd/local.d/maps/something.map";
        score = 15.0;
        symbol = "BLA";
}

and force_actions.conf:

     BLA_FORCE {
     require_action = ["reject"];
     action = "reject";
     expression = "BLA";
     message = "(support-id: ${queueid}) Your mail was rejected because 
of Spam - contact <some-email> if you believe this is an error";
     }




But - (always a but..)

in "normal" actions and in the default message of
local.d/worker-proxy.inc this does not work and
the content of ${queryid} is not interpreted.

result instead looks like:

i.e. antivirus.conf :

clamav {
   # If set force this action if any virus is found (default unset: no 
action is forced)
    action = "reject";
    message = '${SCANNER}: virus found: "${VIRUS}"- "${queryid}"';
    ..so on.. }

=>   554 5.7.1 clamav: virus found: "Eicar-Signature"- "queryid"

or:

554 5.7.1 Probable Spam message rejected: (support-id: ${queueid})


(from worker-proxy.inc)

Now the question: (finally :)

How can the queueid be inserted in default (all?) - reject messages?


Thanks,

greetings,
Gunther


More information about the Users mailing list