[Rspamd-Users] custom mail info logging

Gerald Galster list+rspamd at gcore.biz
Mon Jul 31 00:20:22 UTC 2023


> now I'm using milter-regex mail filter, which has one nice feature - 
> a one-line log about mail in the form:
> 
> Jul  1 02:14:58 sms milter-regex[2478]: smtp.hog.cz [20.4.13.7]: ACCEPT, HELO: mail.hog.cz, FROM: <info at asodi.cz>, RCPT: <danusa at arici.cz>, From: =?utf-8?Q?Nan=C4=9B_do_pici?= <info at laoli.cz>, To: =?utf-8?Q?Dia_=C5=A0=C3=A1hl=C3=A1?= <danusa at arici.cz>, Subject: =?UTF-8?B?xb7DoWRuw6Egc2zDoXZh?=
> 
> [...]
> My question: is it possible to have a similar output from RSPAMD?

Yes, see https://rspamd.com/doc/configuration/logging.html#log-format

You can set log_format in local.d/logging.inc and if the listed variables are not sufficient you can write a lua script to extract more information from the task object.

Best regards,
Gerald


More information about the Users mailing list