[Rspamd-Users] $queryid

gnitzsche gnitzsche at netcologne.de
Fri Nov 18 11:57:16 UTC 2022


Ups..typo. *blush*

s/queryid/queueid/g .. :-)

Doesn't change the result though..

554 5.7.1 Probable Spam message rejected: (support-id: ${queueid}) 
contact <some-email> for help

Although this is listed on

https://rspamd.com/doc/configuration/selectors.html

(using:# rspamd -v
Rspamd daemon version 3.4
)

greetings,
Gunther


On 2022-11-17 17:07, Gunther Nitzsche wrote:
> 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

-- 
NetCologne Systemadministration

NetCologne Gesellschaft für Telekommunikation mbH
Am Coloneum 9 ; 50829 Köln
Geschäftsführer:
  Timo von Lepel,
  Dr. Claus van der Velden
Vorsitzender des Aufsichtsrats:
  Andreas Feicht
HRB 25580, AG Köln


More information about the Users mailing list