[Rspamd-Users] Custom module question

Jesse Norell jesse at kci.net
Fri Mar 25 19:58:53 UTC 2022


On Fri, 2022-03-25 at 11:53 +0100, Aban Dokht wrote:
> I need some help for writing an custom module for logging.
> Sadly I not very familiar with LUA.
> 
> Here's (in pseudo code), what I want to implement for every mail
> passing rspamd:
> 
> if score > 8 then {
> 	/path/to/script1.sh ${sender} ${recipient} ${IP} ${score}
> }
> 
> if score < -4 then {
> 	/path/to/script2.sh ${sender} ${recipient} ${IP} ${score}
> }
> 
> Any idea or example on how to to accomplish this?

I don't know how to do that in rspamd, but if it were me I would simply
set that up outside of rspamd, eg. in the mta or possibly lda, based on
 headers which rspamd can add to the message.

-- 
Jesse Norell
Kentec Communications, Inc.
970-522-8107  -  www.kci.net



More information about the Users mailing list